config - add CUSTOM_HEADER
This commit is contained in:
5
confs/site/custom-headers.conf
Normal file
5
confs/site/custom-headers.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
{% for k, v in all.items() +%}
|
||||
{% if k.startswith("CUSTOM_HEADER") and v != "" +%}
|
||||
more_set_header "{{ v }}";
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -180,6 +180,9 @@ server {
|
||||
include {{ NGINX_PREFIX }}redirect-to.conf;
|
||||
{% endif %}
|
||||
|
||||
# custom headers
|
||||
include {{ NGINX_PREFIX }}custom-headers.conf;
|
||||
|
||||
# reverse proxy
|
||||
{% if USE_REVERSE_PROXY == "yes" +%}
|
||||
include {{ NGINX_PREFIX }}reverse-proxy.conf;
|
||||
|
||||
Reference in New Issue
Block a user