tsuki/coturn: remove usage of secrets
module
This commit is contained in:
parent
45c51639ca
commit
4082011c98
@ -1,20 +1,22 @@
|
|||||||
{ config, lib, secrets, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.coturn;
|
cfg = config.services.coturn;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
sops.secrets."matrix_synapse/turn_shared_secret" = { };
|
||||||
|
|
||||||
services.coturn = let
|
services.coturn = let
|
||||||
# certName = config.services.nginx.virtualHosts.${cfg.realm}.useACMEHost;
|
# certName = config.services.nginx.virtualHosts.${cfg.realm}.useACMEHost;
|
||||||
certName = "nani.wtf";
|
certName = "nani.wtf";
|
||||||
certDir = config.security.acme.certs.${certName}.directory;
|
certDir = config.security.acme.certs.${certName}.directory;
|
||||||
in rec {
|
in rec {
|
||||||
enable = true;
|
enable = false;
|
||||||
no-cli = true;
|
no-cli = true;
|
||||||
no-tcp-relay = true;
|
no-tcp-relay = true;
|
||||||
min-port = 46000;
|
min-port = 46000;
|
||||||
max-port = 47000;
|
max-port = 47000;
|
||||||
use-auth-secret = true;
|
use-auth-secret = true;
|
||||||
static-auth-secret = secrets.keys.matrix.static-auth-secret;
|
static-auth-secret-file = config.sops.secrets."matrix_synapse/turn_shared_secret".path;
|
||||||
realm = "turn.nani.wtf";
|
realm = "turn.nani.wtf";
|
||||||
cert = "${certDir}/cert.pem";
|
cert = "${certDir}/cert.pem";
|
||||||
pkey = "${certDir}/key.pem";
|
pkey = "${certDir}/key.pem";
|
||||||
|
Loading…
Reference in New Issue
Block a user