Add handles to ingress role
This commit is contained in:
parent
a7aa38a8e9
commit
0586eb5ce9
@ -45,6 +45,10 @@ ingress_tls_prefer_server_ciphers: "off"
|
||||
# location = /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||
# location ^~ /.well-known { return 301 /index.php$uri; }
|
||||
# try_files $uri $uri/ =404;
|
||||
# handles:
|
||||
# - handle: "^~ /.well-known/foo"
|
||||
# contents: |
|
||||
# respond `bar`
|
||||
# - name: redirect.example.com
|
||||
# directives:
|
||||
# # NOTE: Do NOT suffix with a semicolon; that gets added for you
|
||||
|
@ -52,6 +52,15 @@ server {
|
||||
{{ location.contents }}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if server.handles is defined %}
|
||||
# Extra manually-defined handlers
|
||||
{% for handle in server.handles %}
|
||||
handle {{ handle.handle }} {
|
||||
{{ handle.contents }}
|
||||
}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
resolver {{ ingress_resolver }};
|
||||
|
Loading…
Reference in New Issue
Block a user