Fix SearXNG headers
This commit is contained in:
parent
8f55cf53e4
commit
5899eb45f6
|
@ -1,6 +1,7 @@
|
||||||
{# code: language=ansible-jinja #}
|
{# code: language=ansible-jinja #}
|
||||||
# THIS FILE IS MANAGED BY ANSIBLE
|
# THIS FILE IS MANAGED BY ANSIBLE
|
||||||
|
|
||||||
|
{% if 'searxng' in apps_include %}
|
||||||
{{ apps_vars.searxng.domain }} {
|
{{ apps_vars.searxng.domain }} {
|
||||||
tls {{ tls_email }}
|
tls {{ tls_email }}
|
||||||
|
|
||||||
|
@ -32,8 +33,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||||
X-XSS-Protection "1; mode=block"
|
|
||||||
X-Content-Type-Options "nosniff"
|
X-Content-Type-Options "nosniff"
|
||||||
Permissions-Policy "accelerometer=(),ambient-light-sensor=(),autoplay=(),camera=(),encrypted-media=(),focus-without-user-activation=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),speaker=(),sync-xhr=(),usb=(),vr=(),interest-cohort=()"
|
Permissions-Policy "accelerometer=(),ambient-light-sensor=(),autoplay=(),camera=(),encrypted-media=(),focus-without-user-activation=(),geolocation=(),gyroscope=(),magnetometer=(),microphone=(),midi=(),payment=(),picture-in-picture=(),speaker=(),sync-xhr=(),usb=(),vr=(),interest-cohort=()"
|
||||||
Referrer-Policy "no-referrer"
|
Referrer-Policy "no-referrer"
|
||||||
|
@ -70,6 +70,8 @@
|
||||||
reverse_proxy searxng:8080 {
|
reverse_proxy searxng:8080 {
|
||||||
header_up X-Forwarded-Port {http.request.port}
|
header_up X-Forwarded-Port {http.request.port}
|
||||||
header_up X-Forwarded-Proto {http.request.scheme}
|
header_up X-Forwarded-Proto {http.request.scheme}
|
||||||
|
header_up X-Real-IP {remote_host}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue