mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-10 02:38:10 +02:00
Ref: https://chatgpt.com/share/68dbf59c-f424-800f-aa27-787db52e260f
26 lines
918 B
Django/Jinja
26 lines
918 B
Django/Jinja
server {
|
||
server_name {{ domain }};
|
||
|
||
{% include 'roles/sys-svc-letsencrypt/templates/ssl_header.j2' %}
|
||
|
||
{% include 'roles/sys-front-inj-all/templates/server.conf.j2'%}
|
||
|
||
{% include 'roles/sys-svc-proxy/templates/headers/content_security_policy.conf.j2' %}
|
||
|
||
{% include 'roles/sys-svc-proxy/templates/headers/access_control_allow.conf.j2' %}
|
||
|
||
{# Normal HTTP routes (discovery, browser, assets) – no Lua injection #}
|
||
{% set proxy_lua_enabled = false %}
|
||
{% set location = "/" %}
|
||
{% include 'roles/sys-svc-proxy/templates/location/html.conf.j2' %}
|
||
|
||
{# Optional explicit fast path for discovery #}
|
||
{% set location = "= " ~ container_healthcheck %}
|
||
{% include 'roles/sys-svc-proxy/templates/location/html.conf.j2' %}
|
||
|
||
{# WebSocket handling for Collabora #}
|
||
{% set location_ws = '^~ /cool/' %}
|
||
{% set ws_port = http_port %}
|
||
{% include 'roles/sys-svc-proxy/templates/location/ws.conf.j2' %}
|
||
}
|