finish hooking up livekit

This commit is contained in:
Matthew Hodgson
2024-11-05 14:03:17 +00:00
parent 01b3f9f435
commit defa69734a
8 changed files with 426 additions and 11 deletions

View File

@@ -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;
}
}