Add router rule variable for more flexibility
This commit is contained in:
parent
e585cc3f99
commit
92bf67b15f
@ -24,6 +24,10 @@ wordpress_dbversion: latest
|
||||
wordpress_dbpass: password
|
||||
|
||||
# multisite (enable in admin panel then uncomment)
|
||||
#wordpress_rule: "Host(`{{ wordpress_domain }}`) ||
|
||||
# Host(`site1.{{ wordpress_domain }}`) ||
|
||||
# Host(`site2.{{ wordpress_domain }}`)"
|
||||
#
|
||||
#wordpress_config_extra: |
|
||||
# define('MULTISITE', {{ wordpress_multisite | string }});
|
||||
# define('SUBDOMAIN_INSTALL', true);
|
||||
|
@ -1,5 +1,6 @@
|
||||
# settings
|
||||
wordpress_multisite: false
|
||||
wordpress_rule: "Host(`{{ wordpress_domain }}`)"
|
||||
wordpress_config_extra: |
|
||||
define('WP_ALLOW_MULTISITE', {{ wordpress_multisite | string }} );
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
volumes:
|
||||
- "{{ wordpress_docroot }}:/var/www/html"
|
||||
labels:
|
||||
traefik.http.routers.wordpress.rule: "Host(`{{ wordpress_domain }}`)"
|
||||
traefik.http.routers.wordpress.rule: "{{ wordpress_rule }}"
|
||||
traefik.http.routers.wordpress.entrypoints: websecure
|
||||
traefik.http.routers.wordpress.tls.certresolver: letsencrypt
|
||||
traefik.http.routers.wordpress.middlewares: securehttps@file
|
||||
|
Loading…
Reference in New Issue
Block a user