raspiblitz/home.admin/assets/nginx/sites-available/jam_tor.conf

51 lines
1.3 KiB
Text
Raw Normal View History

## jam_tor.conf
server {
listen 7502;
2024-01-17 21:13:58 +01:00
listen [::]: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 *;
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;
}
}