## jam_tor.conf server { listen 7502; listen [::1]:7502; server_name _; access_log /var/log/nginx/access_jam.log; error_log /var/log/nginx/error_jam.log; gzip on; gzip_vary on; gzip_proxied any; gzip_types *; gzip_types application/javascript application/json text/css image/svg+xml; root /home/jam/webui/build; index index.html; location /api/ { include /etc/nginx/snippets/proxy-params.conf; proxy_set_header Authorization $http_x_jm_authorization; proxy_set_header x-jm-authorization ""; proxy_pass https://127.0.0.1:28183; } location /jmws { include /etc/nginx/snippets/proxy-params.conf; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Authorization ""; proxy_pass https://127.0.0.1:28283/; } location /obwatch/ { include /etc/nginx/snippets/proxy-params.conf; proxy_http_version 1.1; proxy_set_header Connection ""; # must proxy via "http" as ob-watcher does not make use of self-signed cert yet proxy_pass http://127.0.0.1:62601/; } location / { include /etc/nginx/snippets/proxy-params.conf; try_files $uri $uri/ /index.html; add_header Cache-Control no-cache; } }