fix: move docroot seed to /srv/www/html with config v7
Some checks failed
cc-ci/testme cc-ci: failure
Some checks failed
cc-ci/testme cc-ci: failure
This commit is contained in:
2
abra.sh
2
abra.sh
@ -1,2 +1,2 @@
|
||||
export NGINX_DEFAULT_CONF_VERSION=v6
|
||||
export NGINX_DEFAULT_CONF_VERSION=v7
|
||||
export ENTRYPOINT_CONF_VERSION=v3
|
||||
|
||||
@ -19,16 +19,16 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.11.1+1.29.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.11.2+1.29.0"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/var/www/html"
|
||||
- "backupbot.backup.path=/srv/www/html"
|
||||
environment:
|
||||
- DEFAULT_CONF_FILE=/etc/nginx/conf.d/default.conf
|
||||
- REDIRECT_FROM_PATH
|
||||
- REDIRECT_TO_URL
|
||||
- REDIRECT_TYPE
|
||||
volumes:
|
||||
- content:/var/www/html
|
||||
- content:/srv/www/html
|
||||
configs:
|
||||
- source: nginx_default_conf
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
|
||||
@ -8,7 +8,7 @@ server {
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
root /var/www/html;
|
||||
root /srv/www/html;
|
||||
index index.html index.htm;
|
||||
autoindex on;
|
||||
|
||||
@ -25,14 +25,14 @@ server {
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /var/www/html;
|
||||
root /srv/www/html;
|
||||
}
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /var/www/html;
|
||||
root /srv/www/html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
|
||||
Reference in New Issue
Block a user