searxng.conf:socket 681 B

1234567891011121314151617181920212223242526
  1. location ${SEARXNG_URL_PATH} {
  2. uwsgi_pass unix://${SEARXNG_UWSGI_SOCKET};
  3. include uwsgi_params;
  4. uwsgi_param HTTP_HOST \$host;
  5. uwsgi_param HTTP_CONNECTION \$http_connection;
  6. # see flaskfix.py
  7. uwsgi_param HTTP_X_SCHEME \$scheme;
  8. uwsgi_param HTTP_X_SCRIPT_NAME ${SEARXNG_URL_PATH};
  9. # see limiter.py
  10. uwsgi_param HTTP_X_REAL_IP \$remote_addr;
  11. uwsgi_param HTTP_X_FORWARDED_FOR \$proxy_add_x_forwarded_for;
  12. }
  13. # uWSGI serves the static files and in settings.yml we use::
  14. #
  15. # ui:
  16. # static_use_hash: true
  17. #
  18. # location ${SEARXNG_URL_PATH}/static/ {
  19. # alias ${SEARXNG_STATIC}/;
  20. # }