refactor(nginx): single www volume with html/ subdirectory
- 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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user