@@ -12,17 +12,17 @@ location {{ location_type }}{{ path }} {
1212 {% if npmplus_noindex == true %}include noindex-nofollow.conf;{% endif %}
1313 {% if npmplus_crowdsec_appsec == true %}set $crowdsec_disable_appsec 1;{% endif %}
1414
15- {% if npmplus_x_frame_options == "DENY" or npmplus_x_frame_options == "SAMEORIGIN" %}
16- more_set_headers "X-Frame-Options: {{ npmplus_x_frame_options }}";
17- {% elsif npmplus_x_frame_options == "none" %}
15+ {% if npmplus_x_frame_options == "none" %}
1816 more_clear_headers "X-Frame-Options";
17+ {% elsif npmplus_x_frame_options == "upstream" %}{% else %}
18+ more_set_headers "X-Frame-Options: {{ npmplus_x_frame_options }}";
1919 {% endif %}
2020
2121 {% if forward_scheme == "http" or forward_scheme == "https" %}
2222
2323 set $upstream {{ forward_host }};
2424 include proxy-headers.conf;
25- {% if npmplus_upstream_compression == false %}proxy_set_header Accept-Encoding "";{% endif %}
25+ {% if npmplus_upstream_compression != true %}proxy_set_header Accept-Encoding "";{% endif %}
2626 {% if npmplus_proxy_request_buffering == true %}proxy_request_buffering off;{% endif %}
2727 {% if npmplus_proxy_response_buffering == true %}proxy_buffering off;{% endif %}
2828 proxy_pass {{ forward_scheme }}://{% if forward_path != null %}{{ forward_host }}{% else %}$upstream{% endif %}{% if forward_port != null %}:{{ forward_port }}{% endif %}{% if forward_path != null %}{{ forward_path }}{% else %}$request_uri{% endif %};
@@ -31,7 +31,7 @@ location {{ location_type }}{{ path }} {
3131
3232 set $upstream {{ forward_host }};
3333 include grpc-headers.conf;
34- {% if npmplus_upstream_compression == false %}grpc_set_header Accept-Encoding "";{% endif %}
34+ {% if npmplus_upstream_compression != true %}grpc_set_header Accept-Encoding "";{% endif %}
3535 grpc_pass {{ forward_scheme }}://{% if forward_path != null %}{{ forward_host }}{% else %}$upstream{% endif %}{% if forward_port != null %}:{{ forward_port }}{% endif %}{% if forward_path != null %}{{ forward_path }}{% else %}$request_uri{% endif %};
3636
3737 {% elsif forward_scheme == "path" %}
0 commit comments