From a9fc4885f2d4ab3fba8fd9fbaa0386090250bd11 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 11 Oct 2021 19:59:34 +0200 Subject: [brand] SearXNG - bash env SEARXNG_URL Signed-off-by: Markus Heiser --- utils/templates/etc/nginx/default.apps-available/searx.conf:filtron | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/templates/etc/nginx/default.apps-available') diff --git a/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron b/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron index a89aa38b3..e25461c47 100644 --- a/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron +++ b/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron @@ -1,6 +1,6 @@ # https://example.org/searx -location ${SEARX_URL_PATH} { +location ${SEARXNG_URL_PATH} { proxy_pass http://127.0.0.1:4004/; proxy_set_header Host \$host; @@ -8,9 +8,9 @@ location ${SEARX_URL_PATH} { 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}; + proxy_set_header X-Script-Name ${SEARXNG_URL_PATH}; } -location ${SEARX_URL_PATH}/static/ { +location ${SEARXNG_URL_PATH}/static/ { alias ${SEARX_SRC}/searx/static/; } -- cgit v1.2.3 From 2b1252148d083eb47382733980ec069ef20dcfb6 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 11 Oct 2021 21:20:22 +0200 Subject: [brand] SearXNG - nginx & apache searxng.conf, uwsgi searxng.conf Signed-off-by: Markus Heiser --- .../etc/nginx/default.apps-available/searx.conf:filtron | 16 ---------------- .../nginx/default.apps-available/searxng.conf:filtron | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 utils/templates/etc/nginx/default.apps-available/searx.conf:filtron create mode 100644 utils/templates/etc/nginx/default.apps-available/searxng.conf:filtron (limited to 'utils/templates/etc/nginx/default.apps-available') diff --git a/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron b/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron deleted file mode 100644 index e25461c47..000000000 --- a/utils/templates/etc/nginx/default.apps-available/searx.conf:filtron +++ /dev/null @@ -1,16 +0,0 @@ -# https://example.org/searx - -location ${SEARXNG_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 ${SEARXNG_URL_PATH}; -} - -location ${SEARXNG_URL_PATH}/static/ { - alias ${SEARX_SRC}/searx/static/; -} diff --git a/utils/templates/etc/nginx/default.apps-available/searxng.conf:filtron b/utils/templates/etc/nginx/default.apps-available/searxng.conf:filtron new file mode 100644 index 000000000..e25461c47 --- /dev/null +++ b/utils/templates/etc/nginx/default.apps-available/searxng.conf:filtron @@ -0,0 +1,16 @@ +# https://example.org/searx + +location ${SEARXNG_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 ${SEARXNG_URL_PATH}; +} + +location ${SEARXNG_URL_PATH}/static/ { + alias ${SEARX_SRC}/searx/static/; +} -- cgit v1.2.3