add optional redirection

This commit is contained in:
2023-03-16 11:48:17 +13:00
parent bb9945b38d
commit 6563cfc7e6
4 changed files with 26 additions and 5 deletions

View File

@ -23,7 +23,10 @@ services:
- "backupbot.backup=true"
- "backupbot.backup.path=/usr/share/nginx/html"
environment:
DEFAULT_CONF_FILE: /etc/nginx/conf.d/default.conf
- DEFAULT_CONF_FILE=/etc/nginx/conf.d/default.conf
- REDIRECT_FROM_PATH
- REDIRECT_TO_URL
- REDIRECT_TYPE
volumes:
- content:/usr/share/nginx/html
configs:
@ -42,7 +45,8 @@ volumes:
configs:
nginx_default_conf:
name: ${STACK_NAME}_nginx_default_conf_${NGINX_DEFAULT_CONF_VERSION}
file: default.conf
file: default.conf.tmpl
template_driver: golang
networks:
proxy: