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
|
wordpress_dbpass: password
|
||||||
|
|
||||||
# multisite (enable in admin panel then uncomment)
|
# multisite (enable in admin panel then uncomment)
|
||||||
|
#wordpress_rule: "Host(`{{ wordpress_domain }}`) ||
|
||||||
|
# Host(`site1.{{ wordpress_domain }}`) ||
|
||||||
|
# Host(`site2.{{ wordpress_domain }}`)"
|
||||||
|
#
|
||||||
#wordpress_config_extra: |
|
#wordpress_config_extra: |
|
||||||
# define('MULTISITE', {{ wordpress_multisite | string }});
|
# define('MULTISITE', {{ wordpress_multisite | string }});
|
||||||
# define('SUBDOMAIN_INSTALL', true);
|
# define('SUBDOMAIN_INSTALL', true);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# settings
|
# settings
|
||||||
wordpress_multisite: false
|
wordpress_multisite: false
|
||||||
|
wordpress_rule: "Host(`{{ wordpress_domain }}`)"
|
||||||
wordpress_config_extra: |
|
wordpress_config_extra: |
|
||||||
define('WP_ALLOW_MULTISITE', {{ wordpress_multisite | string }} );
|
define('WP_ALLOW_MULTISITE', {{ wordpress_multisite | string }} );
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
volumes:
|
volumes:
|
||||||
- "{{ wordpress_docroot }}:/var/www/html"
|
- "{{ wordpress_docroot }}:/var/www/html"
|
||||||
labels:
|
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.entrypoints: websecure
|
||||||
traefik.http.routers.wordpress.tls.certresolver: letsencrypt
|
traefik.http.routers.wordpress.tls.certresolver: letsencrypt
|
||||||
traefik.http.routers.wordpress.middlewares: securehttps@file
|
traefik.http.routers.wordpress.middlewares: securehttps@file
|
||||||
|
Loading…
Reference in New Issue
Block a user