트래카 서비스 세팅

nginx proxy

프록시 보내는 방법

      location /gps/ {
         proxy_pass http://127.0.0.1:8082/;
         proxy_http_version 1.1;
         proxy_set_header Host $host;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection "upgrade";
         proxy_read_timeout 600s;
      }

traccar backup sh

    docker exec postgres bash -c 'pg_dump -U postgres cssc -t article_entries > /var/backups/postgres_backup$(date +\%Y\%m\%d).sql'
    docker exec postgres bash -c 'pg_dump -U postgres jaunt  > /var/backups/jaunt/postgres_backup$(date +\%Y\%m\%d).sql'