summaryrefslogtreecommitdiff
path: root/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron
diff options
context:
space:
mode:
Diffstat (limited to 'utils/templates/etc/nginx/default.apps-available/searx.conf:filtron')
-rw-r--r--utils/templates/etc/nginx/default.apps-available/searx.conf:filtron16
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron b/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron
new file mode 100644
index 0000000..a89aa38
--- /dev/null
+++ b/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron
@@ -0,0 +1,16 @@
+# https://example.org/searx
+
+location ${SEARX_URL_PATH} {
+ proxy_pass http://127.0.0.1:4004/;
+
+ proxy_set_header Host \$host;
+ proxy_set_header Connection \$http_connection;
+ proxy_set_header X-Real-IP \$remote_addr;
+ proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
+ proxy_set_header X-Scheme \$scheme;
+ proxy_set_header X-Script-Name ${SEARX_URL_PATH};
+}
+
+location ${SEARX_URL_PATH}/static/ {
+ alias ${SEARX_SRC}/searx/static/;
+}