diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2020-06-19 04:51:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-19 04:51:29 +0000 |
| commit | 1db37a0cc3622ce791851ebeb3db814c0a1f0c61 (patch) | |
| tree | 3ca2436c9cae27ee3232cb362462d26e1e6effa9 /utils/templates/etc/nginx/default.apps-available | |
| parent | 59739a44dbdcb59d8b45e25b907aa5761ca88e49 (diff) | |
| parent | c83007a6bcd2a7f765e7655b91cc6714fbc4ab01 (diff) | |
Merge branch 'master' into about-opensearch
Diffstat (limited to 'utils/templates/etc/nginx/default.apps-available')
| -rw-r--r-- | utils/templates/etc/nginx/default.apps-available/morty.conf | 11 | ||||
| -rw-r--r-- | utils/templates/etc/nginx/default.apps-available/searx.conf:filtron | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/utils/templates/etc/nginx/default.apps-available/morty.conf b/utils/templates/etc/nginx/default.apps-available/morty.conf new file mode 100644 index 000000000..e7ffa27e2 --- /dev/null +++ b/utils/templates/etc/nginx/default.apps-available/morty.conf @@ -0,0 +1,11 @@ +# https://example.org/morty + +location /morty { + proxy_pass http://127.0.0.1:3000/; + + proxy_set_header Host \$http_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; +} 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 000000000..d3137e42d --- /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 \$http_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; +} |