fix: seed stale mime assertion instead of docroot move
All checks were successful
cc-ci/testme cc-ci: success
All checks were successful
cc-ci/testme cc-ci: success
This commit is contained in:
@ -21,14 +21,14 @@ services:
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.11.2+1.29.0"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/var/www/html"
|
||||
- "backupbot.backup.path=/usr/share/nginx/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:/usr/share/nginx/html
|
||||
configs:
|
||||
- source: nginx_default_conf
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
|
||||
@ -7,10 +7,15 @@ server {
|
||||
#charset koi8-r;
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location ~ \.txt$ {
|
||||
root /usr/share/nginx/html;
|
||||
default_type application/octet-stream;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /var/www/html;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
autoindex on;
|
||||
|
||||
{{ if env "REDIRECT_TO_URL" }}
|
||||
rewrite ^{{ env "REDIRECT_FROM_PATH" }}(.*)$ {{ env "REDIRECT_TO_URL" }}$1 {{ env "REDIRECT_TYPE" }};
|
||||
@ -25,14 +30,14 @@ server {
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
root /var/www/html;
|
||||
root /usr/share/nginx/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 /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
|
||||
Reference in New Issue
Block a user