prosody: Allow specification of external TURN via environment
This commit is contained in:
parent
088d9cb840
commit
bd5329c84d
|
@ -180,9 +180,9 @@ http_host = DOMAIN
|
||||||
http_external_url = "https://"..DOMAIN.."/"
|
http_external_url = "https://"..DOMAIN.."/"
|
||||||
http_max_content_size = 1024 * 1024 * 16 -- 16MB
|
http_max_content_size = 1024 * 1024 * 16 -- 16MB
|
||||||
|
|
||||||
if ENV_SNIKKET_TWEAK_TURNSERVER ~= "0" then
|
if ENV_SNIKKET_TWEAK_TURNSERVER ~= "0" or ENV_SNIKKET_TWEAK_TURNSERVER_DOMAIN then
|
||||||
turncredentials_host = DOMAIN
|
turncredentials_host = ENV_SNIKKET_TWEAK_TURNSERVER_DOMAIN or DOMAIN
|
||||||
turncredentials_secret = assert(io.open("/snikket/prosody/turn-auth-secret-v2")):read("*l");
|
turncredentials_secret = ENV_SNIKKET_TWEAK_TURNSERVER_SECRET or assert(io.open("/snikket/prosody/turn-auth-secret-v2")):read("*l");
|
||||||
end
|
end
|
||||||
|
|
||||||
VirtualHost (DOMAIN)
|
VirtualHost (DOMAIN)
|
||||||
|
|
Loading…
Reference in New Issue