computer-playbook/roles/docker-bigbluebutton/templates/nginx-proxy.conf.j2

31 lines
766 B
Plaintext
Raw Normal View History

2022-12-02 21:18:55 +01:00
server
{
server_name {{domain}};
{% include 'roles/native-letsencrypt/templates/ssl_header.j2' %}
{% with http_port=http_port_II %}
{% include 'roles/native-docker-reverse-proxy/templates/proxy_pass.conf.j2' %}
{% endwith %}
location {{relative_url_root}} {
proxy_pass http://127.0.0.1:{{http_port_I}};
# headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
# deactivate buffering
proxy_buffering off;
proxy_request_buffering off;
# timeouts
proxy_connect_timeout 1s;
proxy_send_timeout 900s;
proxy_read_timeout 900s;
send_timeout 900s;
}
}