diff --git a/babybuddy/root/etc/nginx/templates/ingress.gtpl b/babybuddy/root/etc/nginx/templates/ingress.gtpl index ac1497a..cbdcc48 100644 --- a/babybuddy/root/etc/nginx/templates/ingress.gtpl +++ b/babybuddy/root/etc/nginx/templates/ingress.gtpl @@ -4,6 +4,14 @@ server { include /etc/nginx/includes/server_params.conf; include /etc/nginx/includes/proxy_params.conf; + location /media { + root /app/babybuddy; + } + + location /static { + root /app/babybuddy; + } + location / { allow 172.30.32.2; deny all; @@ -11,15 +19,6 @@ server { proxy_pass http://backend; absolute_redirect off; - proxy_redirect '/' $http_x_ingress_path/; - sub_filter 'href="/' 'href="$http_x_ingress_path/'; - sub_filter 'href=/>' 'href="$http_x_ingress_path/">'; # Top left home icon - sub_filter 'action="/' 'action="$http_x_ingress_path/'; - sub_filter '