stash
This commit is contained in:
parent
419893d93d
commit
e743de33c0
2 changed files with 12 additions and 10 deletions
|
|
@ -73,15 +73,14 @@
|
|||
# header instead.
|
||||
toolshed_x_forwarded_proto: >-
|
||||
{{ '$http_x_forwarded_proto' if (behind_tls_proxy | default(false) | bool) else '$scheme' }}
|
||||
# The web domain (toolshed_domain, mandatory) and the handle domain
|
||||
# (toolshed_handle_domain, optional - defaults to the web domain when
|
||||
# they're the same) both need to be accepted by nginx/Django, since
|
||||
# either may show up as the Host header depending on how the admin set
|
||||
# up DNS for this deployment. Deduplicated so setting them equal
|
||||
# doesn't produce a repeated entry.
|
||||
# Only the web domain (toolshed_domain) - nginx server_name, Django
|
||||
# ALLOWED_HOSTS, and the cert certbot requests. The handle domain
|
||||
# (toolshed_handle_domain) is resolved by clients via its own SRV record
|
||||
# and doesn't necessarily have an A record pointing at this host at all
|
||||
# (see the README's DNS section), so it can't reliably serve an HTTP-01
|
||||
# challenge or ever show up as this nginx's Host header.
|
||||
toolshed_hostnames: >-
|
||||
{{ [toolshed_domain | mandatory('toolshed_domain must be set as a host_var for ' ~ inventory_hostname),
|
||||
toolshed_handle_domain | default(toolshed_domain)] | unique }}
|
||||
{{ [toolshed_domain | mandatory('toolshed_domain must be set as a host_var for ' ~ inventory_hostname)] }}
|
||||
# Generated once per host on the controller and reused on every
|
||||
# subsequent run against that host, keyed by inventory_hostname so
|
||||
# separate deployments never end up sharing a Django SECRET_KEY.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue