searxng.conf 742 B

1234567891011121314151617181920212223242526272829
  1. location ${SEARXNG_URL_PATH} {
  2. proxy_pass http://${SEARXNG_INTERNAL_HTTP};
  3. proxy_set_header Host \$host;
  4. proxy_set_header Connection \$http_connection;
  5. # see flaskfix.py
  6. proxy_set_header X-Scheme \$scheme;
  7. proxy_set_header X-Script-Name ${SEARXNG_URL_PATH};
  8. # see limiter.py
  9. proxy_set_header X-Real-IP \$remote_addr;
  10. proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
  11. # proxy_buffering off;
  12. # proxy_request_buffering off;
  13. # proxy_buffer_size 8k;
  14. }
  15. # uWSGI serves the static files and in settings.yml we use::
  16. #
  17. # ui:
  18. # static_use_hash: true
  19. #
  20. # location ${SEARXNG_URL_PATH}/static/ {
  21. # alias ${SEARXNG_STATIC}/;
  22. # }