2022-11-01 15:47:54 +00:00
|
|
|
## jam_ssl.conf
|
2022-01-15 11:00:36 +01:00
|
|
|
|
|
|
|
server {
|
2022-05-17 19:33:56 +02:00
|
|
|
listen 7501 ssl http2;
|
|
|
|
listen [::]:7501 ssl http2;
|
2022-01-15 11:00:36 +01:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/ssl-params.conf;
|
|
|
|
include /etc/nginx/snippets/ssl-certificate-app-data.conf;
|
|
|
|
|
2022-11-01 15:47:54 +00:00
|
|
|
access_log /var/log/nginx/access_jam.log;
|
|
|
|
error_log /var/log/nginx/error_jam.log;
|
2022-01-15 11:00:36 +01:00
|
|
|
|
|
|
|
gzip on;
|
2022-11-01 15:47:54 +00:00
|
|
|
gzip_vary on;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_types *;
|
2022-01-15 11:00:36 +01:00
|
|
|
gzip_types application/javascript application/json text/css image/svg+xml;
|
|
|
|
|
2022-11-01 15:47:54 +00:00
|
|
|
root /home/jam/webui/build;
|
2022-01-15 11:00:36 +01:00
|
|
|
index index.html;
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
include /etc/nginx/snippets/ssl-proxy-params.conf;
|
2022-03-01 17:02:21 +01:00
|
|
|
|
|
|
|
proxy_set_header Authorization $http_x_jm_authorization;
|
|
|
|
proxy_set_header x-jm-authorization "";
|
|
|
|
|
2022-01-15 11:00:36 +01:00
|
|
|
proxy_pass https://127.0.0.1:28183;
|
|
|
|
}
|
|
|
|
|
2022-11-01 15:47:54 +00:00
|
|
|
location /jmws {
|
2022-01-15 11:00:36 +01:00
|
|
|
include /etc/nginx/snippets/proxy-params.conf;
|
2022-11-01 15:47:54 +00:00
|
|
|
proxy_http_version 1.1;
|
2022-01-15 11:00:36 +01:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
2022-11-01 15:47:54 +00:00
|
|
|
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/;
|
2022-01-15 11:00:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
include /etc/nginx/snippets/ssl-proxy-params.conf;
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
add_header Cache-Control no-cache;
|
|
|
|
}
|
|
|
|
}
|