update paas.conf

This commit is contained in:
Arthur Lu 2023-10-12 00:44:14 +00:00
parent e4d44484fb
commit 7ca4ae2c55
2 changed files with 5 additions and 17 deletions

View File

@ -1,14 +0,0 @@
server {
listen 443 ssl http2;
server_name dashboard.tronnet.net;
include /etc/nginx/snippets/ssl-acme.conf;
location / {
include /etc/nginx/snippets/error-pages.conf;
proxy_pass http://proxmoxaas.dmz:8080;
proxy_redirect default;
}
location /api/ {
proxy_pass http://proxmoxaas.dmz:80;
proxy_redirect default;
}
}

View File

@ -2,14 +2,16 @@ server {
listen 443 ssl http2; listen 443 ssl http2;
server_name paas.tronnet.net; server_name paas.tronnet.net;
include /etc/nginx/snippets/ssl-acme.conf; include /etc/nginx/snippets/ssl-acme.conf;
include /etc/nginx/snippets/error-pages.conf;
location /dashboard/ { location /dashboard/ {
#include /etc/nginx/snippets/error-pages.conf;
proxy_pass http://proxmoxaas.dmz:8080/; proxy_pass http://proxmoxaas.dmz:8080/;
proxy_redirect default; proxy_redirect default;
proxy_set_header Host $host;
} }
location /api/ { location /api/ {
proxy_pass http://proxmoxaas.dmz:80/; proxy_pass http://proxmoxaas.dmz:80/api/;
proxy_redirect default; proxy_redirect default;
} }
location = / {
return 301 "/dashboard/";
}
} }