_location.conf 775 B

123456789101112131415161718192021222324
  1. location {{ path }} {
  2. proxy_set_header Host $host;
  3. proxy_set_header X-Forwarded-Scheme $scheme;
  4. proxy_set_header X-Forwarded-Proto $scheme;
  5. proxy_set_header X-Forwarded-For $remote_addr;
  6. proxy_set_header X-Real-IP $remote_addr;
  7. proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
  8. {% include "_access.conf" %}
  9. {% include "_assets.conf" %}
  10. {% include "_exploits.conf" %}
  11. {% include "_forced_ssl.conf" %}
  12. {% include "_hsts.conf" %}
  13. {% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection $http_connection;
  16. proxy_http_version 1.1;
  17. {% endif %}
  18. {{ advanced_config }}
  19. }