feat(nginx): Fixed going to / not working

This commit is contained in:
Maieul BOYER 2025-12-04 16:03:52 +01:00
parent c898fe8d32
commit 2ad9fe9859
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -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"> 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">
<nav class="flex flex-col p-4 space-y-3"> <nav class="flex flex-col p-4 space-y-3">
<a href="/" class="hover:bg-gray-700 rounded-md px-3 py-2">🏠 Home</a> <a href="/" class="hover:bg-gray-700 rounded-md px-3 py-2">🏠 Home</a>
<a href="/login" class="hover:bg-gray-700 rounded-md px-3 py-2">👤 Login</a>
<a href="/signin" class="hover:bg-gray-700 rounded-md px-3 py-2">👤 Signin</a>
<a href="/chat" class="hover:bg-gray-700 rounded-md px-3 py-2">👤 Chat</a> <a href="/chat" class="hover:bg-gray-700 rounded-md px-3 py-2">👤 Chat</a>
<a href="/contact" class="hover:bg-gray-700 rounded-md px-3 py-2">⚙️ Settings</a> <a href="/contact" class="hover:bg-gray-700 rounded-md px-3 py-2">⚙️ Settings</a>
<a href="/404" class="hover:bg-gray-700 rounded-md px-3 py-2">🚪 Logout</a> <a href="/logout" class="hover:bg-gray-700 rounded-md px-3 py-2">🚪 Logout</a>
</nav> </nav>
</aside> </aside>

View file

@ -3,6 +3,10 @@ location /app {
try_files /index.html =404; try_files /index.html =404;
} }
location /assets { location /assets {
root /volumes/static/app/; root /volumes/static/app/;
} }
location / {
return 301 https://$http_host/app;
}