Merge pull request 'add optional redirection + fix 404s' (#2) from redirect into main

Reviewed-on: https://git.coopcloud.tech/coop-cloud/custom-html/pulls/2
This commit is contained in:
3wordchant
2023-05-30 13:51:40 +00:00
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: