Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
847 B

  1. {% block proxy_conf %}
  2. {#
  3. This is the default block that gets included if the
  4. child template does not declare a {% block proxy_conf %}
  5. #}
  6. location /{{ proxy_location_path | default("")}} {
  7. client_max_body_size {{ max_body_size | default(8) }}M;
  8. proxy_set_header Upgrade $http_upgrade;
  9. proxy_set_header Connection "upgrade";
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Real-IP $remote_addr;
  12. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  13. proxy_set_header X-Forwarded-Proto $scheme;
  14. proxy_set_header X-Frame-Options SAMEORIGIN;
  15. {{ proxy_type | default("proxy_pass") }} {{ remote_host | default("http://127.0.0.1:8080") }};
  16. {% block root %}
  17. {% endblock %}
  18. }
  19. {% endblock %}
  20. {% block extra %}
  21. {% endblock %}