diff --git a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/infra.conf b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/infra.conf index 70ff7c3..0eed22d 100644 --- a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/infra.conf +++ b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/infra.conf @@ -1,42 +1,53 @@ # ------------------------------------------------------------- # Webserver # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # Site: infra.nasqueron.org # License: Trivial work, not eligible to copyright # Source file: roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/infra.conf # ------------------------------------------------------------- # # # This file is managed by our rOPS SaltStack repository. # # Changes to this file may cause incorrect behavior # and will be lost if the state is redeployed. # server { listen 80; listen [::]:80; server_name infra.nasqueron.org; include includes/letsencrypt; return 301 https://infra.nasqueron.org$request_uri; } server { server_name infra.nasqueron.org; include includes/tls; ssl_certificate /usr/local/etc/letsencrypt/live/infra.nasqueron.org/fullchain.pem; ssl_certificate_key /usr/local/etc/letsencrypt/live/infra.nasqueron.org/privkey.pem; error_log /var/log/www/nasqueron.org/infra-error.log; access_log /var/log/www/nasqueron.org/infra-access.log; root /var/wwwroot/nasqueron.org/infra; location = / { return 302 https://infra.nasqueron.org/servers-log/; } + + location = /cd { + return 302 https://infra.nasqueron.org/cd/dashboard/; + } + + location /cd/dashboard { + rewrite ^/cd/dashboard/?(.*)$ /$1 break; + + proxy_pass http://equatower.nasqueron.org:24180; + include includes/proxy; + } }