refactor(nginx): single www volume with html/ subdirectory
Some checks failed
Test / test (push) Has been cancelled
Renovate / renovate (push) Has been cancelled

- Removed separate html volume, use /var/www as single web root
- Moved html/ content into www/html/
- Updated default.conf root to /var/www/html
- Allows organizing multiple sites under /var/www (html, mon_site, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gui-Gos
2026-02-12 14:39:43 +01:00
parent 5c72b3f3f9
commit 2a6946cac4
4 changed files with 2 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ server {
server_name _; server_name _;
root /usr/share/nginx/html; root /var/www/html;
index index.html index.htm; index index.html index.htm;
# Headers de securite # Headers de securite
@@ -37,6 +37,6 @@ server {
error_page 404 /404.html; error_page 404 /404.html;
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location = /50x.html { location = /50x.html {
root /usr/share/nginx/html; root /var/www/html;
} }
} }

View File

@@ -19,10 +19,6 @@
"hostPath": "${APP_DATA_DIR}/data/www", "hostPath": "${APP_DATA_DIR}/data/www",
"containerPath": "/var/www" "containerPath": "/var/www"
}, },
{
"hostPath": "${APP_DATA_DIR}/data/html",
"containerPath": "/usr/share/nginx/html"
},
{ {
"hostPath": "${APP_DATA_DIR}/data/logs", "hostPath": "${APP_DATA_DIR}/data/logs",
"containerPath": "/var/log/nginx" "containerPath": "/var/log/nginx"