From 7ca4ae2c55e4086b0464fb9600e87d12d4eada18 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 12 Oct 2023 00:44:14 +0000 Subject: [PATCH] update paas.conf --- sites/dashboard.conf | 14 -------------- sites/paas.conf | 8 +++++--- 2 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 sites/dashboard.conf diff --git a/sites/dashboard.conf b/sites/dashboard.conf deleted file mode 100644 index a562efe..0000000 --- a/sites/dashboard.conf +++ /dev/null @@ -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; - } -} diff --git a/sites/paas.conf b/sites/paas.conf index dcf8ee4..00459fc 100644 --- a/sites/paas.conf +++ b/sites/paas.conf @@ -2,14 +2,16 @@ server { listen 443 ssl http2; server_name paas.tronnet.net; include /etc/nginx/snippets/ssl-acme.conf; - include /etc/nginx/snippets/error-pages.conf; location /dashboard/ { + #include /etc/nginx/snippets/error-pages.conf; proxy_pass http://proxmoxaas.dmz:8080/; proxy_redirect default; - proxy_set_header Host $host; } location /api/ { - proxy_pass http://proxmoxaas.dmz:80/; + proxy_pass http://proxmoxaas.dmz:80/api/; proxy_redirect default; } + location = / { + return 301 "/dashboard/"; + } }