lab-ansible/roles/apps/templates/nginx/conf.d/jitsi.conf.j2

35 lines
1,007 B
Plaintext
Raw Normal View History

2024-02-10 21:36:48 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
server {
server_name {{ apps_vars.jitsi.domain }};
listen 8080;
set $upstream http://jitsi:{{ apps_vars.jitsi.port }};
proxy_http_version 1.1;
proxy_buffering off;
location / {
proxy_pass $upstream;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
2024-02-10 21:36:48 +00:00
}
2024-05-15 19:24:30 +00:00
location ~^/(colibri-ws|xmpp-websocket) {
2024-02-10 21:36:48 +00:00
proxy_pass $upstream;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto "https";
2024-02-10 21:36:48 +00:00
# WebSocket support
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}