From 3c4046e2c3114020450be53eeabfef60957e1963 Mon Sep 17 00:00:00 2001 From: Michael Manganiello Date: Wed, 19 Feb 2025 09:43:26 -0300 Subject: [PATCH] fix: Nginx alias_traversal warning Warning triggered by [gixy](https://github.com/yandex/gixy). Related documentation: https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md --- docker/nginx/templates/default.conf.template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/nginx/templates/default.conf.template b/docker/nginx/templates/default.conf.template index 30e1e1e4c..16df4f94f 100644 --- a/docker/nginx/templates/default.conf.template +++ b/docker/nginx/templates/default.conf.template @@ -44,9 +44,9 @@ server { } # Internally redirect download requests - location /library { + location /library/ { internal; - alias /romm/library; + alias /romm/library/; } # This location, and the related server at port 8081, are used to serve files when @@ -75,7 +75,7 @@ server { listen 8081; server_name localhost; - location /library { - alias /romm/library; + location /library/ { + alias /romm/library/; } }