Compare commits
2 Commits
v5-stale-d
...
regression
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e03499ff1 | |||
| 5a481cc1f6 |
2
abra.sh
2
abra.sh
@ -1,2 +1,2 @@
|
||||
export NGINX_DEFAULT_CONF_VERSION=v7
|
||||
export NGINX_DEFAULT_CONF_VERSION=v6
|
||||
export ENTRYPOINT_CONF_VERSION=v3
|
||||
|
||||
@ -4,6 +4,7 @@ version: "3.8"
|
||||
services:
|
||||
app:
|
||||
image: nginx:1.29.0
|
||||
command: ["sh", "-c", "mkdir -p /usr/share/nginx/html/.backup-data && echo backup-placeholder > /usr/share/nginx/html/.backup-data/placeholder.txt && exec nginx -g 'daemon off;'"]
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
@ -19,9 +20,9 @@ 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.2+1.29.0"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.11.0+1.29.0"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/usr/share/nginx/html"
|
||||
- "backupbot.backup.path=/usr/share/nginx/html/.backup-data"
|
||||
environment:
|
||||
- DEFAULT_CONF_FILE=/etc/nginx/conf.d/default.conf
|
||||
- REDIRECT_FROM_PATH
|
||||
|
||||
@ -7,13 +7,6 @@ server {
|
||||
#charset koi8-r;
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location ~ \.txt$ {
|
||||
root /usr/share/nginx/html;
|
||||
types { }
|
||||
default_type application/octet-stream;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
Reference in New Issue
Block a user