From 99ae6adc34099ffd0152e49149dfab4ffadb3d4c Mon Sep 17 00:00:00 2001 From: Andreas Resch Date: Thu, 11 Jan 2024 10:41:18 +0100 Subject: [PATCH] add redirects --- deployment/nginx/nginx/aeolus-nginx.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/deployment/nginx/nginx/aeolus-nginx.conf b/deployment/nginx/nginx/aeolus-nginx.conf index c76e3aab..31d200db 100644 --- a/deployment/nginx/nginx/aeolus-nginx.conf +++ b/deployment/nginx/nginx/aeolus-nginx.conf @@ -3,6 +3,10 @@ upstream aeolus { server aeolus-api:8090; } +upstream aeolus-playground { + server playground:80; +} + # Remove nginx version from HTTP response server_tokens off; @@ -20,6 +24,23 @@ server { server { listen 443 ssl http2; listen [::]:443 ssl http2; + + location /api { + proxy_pass http://aeolus-api; + } + + location /openapi.json { + proxy_pass http://aeolus-api; + } + + location /docs { + proxy_pass http://aeolus-api; + } + + location / { + proxy_pass http://aeolus-playground; + } + server_name _; ssl_certificate /certs/fullchain.pem;