2023-10-05 21:12:18 +00:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
server_name paas.tronnet.net;
|
|
|
|
include /etc/nginx/snippets/ssl-acme.conf;
|
2023-10-12 04:50:12 +00:00
|
|
|
include /etc/nginx/snippets/error-pages.conf;
|
2023-10-05 21:12:18 +00:00
|
|
|
location /dashboard/ {
|
2023-10-12 04:50:12 +00:00
|
|
|
include /etc/nginx/snippets/proxy-errors.conf;
|
2023-10-05 21:12:18 +00:00
|
|
|
proxy_pass http://proxmoxaas.dmz:8080/;
|
|
|
|
proxy_redirect default;
|
|
|
|
}
|
|
|
|
location /api/ {
|
2023-11-17 03:39:44 +00:00
|
|
|
proxy_pass http://proxmoxaas.dmz:8081/api/;
|
2023-10-05 21:12:18 +00:00
|
|
|
proxy_redirect default;
|
|
|
|
}
|
2023-10-12 00:44:14 +00:00
|
|
|
location = / {
|
2023-10-12 04:50:12 +00:00
|
|
|
return 301 "/dashboard/";
|
|
|
|
}
|
2023-10-05 21:12:18 +00:00
|
|
|
}
|