From bb7037d51536e8f51d207f90d518078c01ad5fc5 Mon Sep 17 00:00:00 2001 From: Maieul BOYER Date: Thu, 4 Dec 2025 16:03:52 +0100 Subject: [PATCH] feat(nginx): Fixed going to `/` not working --- frontend/index.html | 4 +++- nginx/conf/locations/app.conf | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 47a018d..5163217 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -25,9 +25,11 @@ class="fixed top-14 left-0 w-64 h-full bg-gray-900 text-white transform -translate-x-full transition-transform duration-300 ease-in-out z-40"> diff --git a/nginx/conf/locations/app.conf b/nginx/conf/locations/app.conf index 5554a40..75bca27 100644 --- a/nginx/conf/locations/app.conf +++ b/nginx/conf/locations/app.conf @@ -3,6 +3,10 @@ location /app { try_files /index.html =404; } -location /assets { +location /assets { root /volumes/static/app/; } + +location / { + return 301 https://$http_host/app; +}