Redirect old domain to new one
This commit is contained in:
parent
2b59b4ce99
commit
7fc79f7a21
2 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
output stdout
|
output stdout
|
||||||
format console
|
format console
|
||||||
}
|
}
|
||||||
|
auto_https disable_redirects
|
||||||
}
|
}
|
||||||
|
|
||||||
(proxy-auth) {
|
(proxy-auth) {
|
||||||
|
@ -15,6 +16,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
http://*.{$DOMAIN} {
|
||||||
|
redir https://{labels.3}.{$DOMAIN}{uri} permanent
|
||||||
|
}
|
||||||
|
|
||||||
|
http://*.{$OLD_DOMAIN} {
|
||||||
|
redir https://{labels.1}.{$DOMAIN}{uri} permanent
|
||||||
|
}
|
||||||
|
|
||||||
*.{$DOMAIN} {
|
*.{$DOMAIN} {
|
||||||
tls {
|
tls {
|
||||||
dns netcup {
|
dns netcup {
|
||||||
|
|
|
@ -16,6 +16,7 @@ services:
|
||||||
- web
|
- web
|
||||||
environment:
|
environment:
|
||||||
- DOMAIN=${DOMAIN}
|
- DOMAIN=${DOMAIN}
|
||||||
|
- OLD_DOMAIN=${OLD_DOMAIN}
|
||||||
- LOCAL_CA_NAME=${LOCAL_CA_NAME}
|
- LOCAL_CA_NAME=${LOCAL_CA_NAME}
|
||||||
- NETCUP_CUSTOMER_NUMBER=${NETCUP_CUSTOMER_NUMBER}
|
- NETCUP_CUSTOMER_NUMBER=${NETCUP_CUSTOMER_NUMBER}
|
||||||
- NETCUP_API_KEY=${NETCUP_API_KEY}
|
- NETCUP_API_KEY=${NETCUP_API_KEY}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue