nginx-configs/common/searxng.conf

23 lines
687 B
Plaintext
Raw Normal View History

2022-10-21 20:40:01 +00:00
add_header Onion-Location http://sx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernvtyi6rdcmv646in4qb4qkbtdi32f4m7zbkcoyualz7bzsfrq.b32.i2p$request_uri;
2022-07-25 10:55:46 +00:00
location / {
2023-01-01 03:27:00 +00:00
uwsgi_pass 192.168.122.53:5003;
2023-01-01 03:27:00 +00:00
include snippets/uwsgi_params;
2023-01-01 03:27:00 +00:00
uwsgi_param HTTP_HOST $host;
uwsgi_param HTTP_CONNECTION $http_connection;
2023-01-01 03:27:00 +00:00
# see flaskfix.py
uwsgi_param HTTP_X_SCHEME $scheme;
uwsgi_param HTTP_X_SCRIPT_NAME /searxng;
2023-01-01 03:27:00 +00:00
# see limiter.py
uwsgi_param HTTP_X_REAL_IP $remote_addr;
uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
2022-07-25 10:55:46 +00:00
}
2023-11-20 07:03:34 +00:00
if ($badagent) {
return 403;
}