mirror of
https://github.com/element-hq/element-docker-demo.git
synced 2026-01-25 14:31:09 +03:00
finish hooking up livekit
This commit is contained in:
@@ -3,6 +3,11 @@ ${CONFIG_HEADER}
|
||||
# taken from https://element-hq.github.io/synapse/latest/reverse_proxy.html
|
||||
# mixed with https://github.com/wmnnd/nginx-certbot/tree/master/etc/nginx/conf.d/nginx
|
||||
|
||||
# log_format vhosts '$host $remote_addr - $remote_user [$time_local] '
|
||||
# '"$request" $status $body_bytes_sent '
|
||||
# '"$http_referer" "$http_user_agent"';
|
||||
# access_log /dev/stdout vhosts;
|
||||
|
||||
server {
|
||||
server_name ${DOMAIN};
|
||||
server_tokens off;
|
||||
@@ -92,6 +97,22 @@ server {
|
||||
|
||||
location / {
|
||||
proxy_pass http://livekit:7880;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade ${DOLLAR}http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host ${DOLLAR}host;
|
||||
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
server_name ${LIVEKIT_JWT_FQDN};
|
||||
server_tokens off;
|
||||
|
||||
include /etc/nginx/conf.d/include/ssl.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://livekit-jwt:8080;
|
||||
proxy_set_header X-Forwarded-For ${DOLLAR}remote_addr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user