사용자 도구

사이트 도구


traccar-nginx

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

traccar-nginx [2020/04/14 08:25]
traccar-nginx [2021/04/13 06:54] (현재)
줄 1: 줄 1:
 +<title>트래카 서비스 세팅</title>
 +===== nginx proxy =====
 +[[https://www.traccar.org/forums/topic/nginx-proxy-working/|프록시 보내는 방법]]
 +<code>
 +      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;
 +      }
 +</code>
  
 +===== traccar backup sh =====
 +<code>
 +    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'
 +</code>