diff --git a/Docker/nginx.conf b/Docker/nginx.conf index a19877f..8429859 100644 --- a/Docker/nginx.conf +++ b/Docker/nginx.conf @@ -34,6 +34,10 @@ http { listen 8080; server_name _; + # Emit relative Location headers (e.g. /docs -> /docs/) so the internal + # :8080 listen port never leaks into redirects behind the reverse proxy. + absolute_redirect off; + root /app/public; # index.html lets the pre-generated static Scribe docs resolve: /docs -> # /docs/ -> public/docs/index.html (assets are served by try_files below).