Add EXTRA_DOMAINS support
This commit is contained in:
parent
82332b6854
commit
c3b4bb5dfb
|
@ -1,4 +1,6 @@
|
||||||
export DOMAIN=wordpress.example.com
|
export DOMAIN=wordpress.example.com
|
||||||
|
## Domain aliases
|
||||||
|
#export EXTRA_DOMAINS=', `www.wordpress.example.com`'
|
||||||
|
|
||||||
export STACK_NAME=wordpress
|
export STACK_NAME=wordpress
|
||||||
export LETS_ENCRYPT_ENV=production
|
export LETS_ENCRYPT_ENV=production
|
||||||
|
|
|
@ -15,7 +15,6 @@ Coöp Cloud + [Wordpress](https://wordpress.org) = 🥳
|
||||||
abra secret_generate db_password v1
|
abra secret_generate db_password v1
|
||||||
abra secret_generate db_root_password v1
|
abra secret_generate db_root_password v1
|
||||||
```
|
```
|
||||||
|
|
||||||
7. `abra deploy`
|
7. `abra deploy`
|
||||||
8. Open the configured domain in your browser to finish set-up
|
8. Open the configured domain in your browser to finish set-up
|
||||||
9. `abra run wordpress chown www-data:www-data /var/www/html/wp-content` to fix
|
9. `abra run wordpress chown www-data:www-data /var/www/html/wp-content` to fix
|
||||||
|
|
|
@ -34,7 +34,7 @@ services:
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.docker.network=proxy"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls=true"
|
- "traefik.http.routers.${STACK_NAME}.tls=true"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`ch.${DOMAIN}`, `${DOMAIN}`)"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
# 3wc: this rule works for routing, but not for generating certificates
|
# 3wc: this rule works for routing, but not for generating certificates
|
||||||
# see https://git.autonomic.zone/compose-stacks/planning/issues/14
|
# see https://git.autonomic.zone/compose-stacks/planning/issues/14
|
||||||
#- "traefik.http.routers.${STACK_NAME}.rule=HostRegexp(`{subdomain:.+}.${DOMAIN}`, `${DOMAIN}`)"
|
#- "traefik.http.routers.${STACK_NAME}.rule=HostRegexp(`{subdomain:.+}.${DOMAIN}`, `${DOMAIN}`)"
|
||||||
|
|
Reference in New Issue