diff options
author | stuebinm | 2021-04-17 16:09:28 +0200 |
---|---|---|
committer | stuebinm | 2021-04-17 16:09:28 +0200 |
commit | 022c17185b8b90515cb2c9b1ae039a9ab190db91 (patch) | |
tree | d31d7078f59613615ec2c49b3e243c39d36e4eed /hosts/chaski/services | |
parent | e1359d9565f4fed555a9aeffae2a83458564f046 (diff) |
cgit: chaski -> flora; general cleanup
Diffstat (limited to '')
-rw-r--r-- | hosts/chaski/services/coturn.nix | 54 | ||||
-rw-r--r-- | hosts/flora/services/cgit.nix (renamed from hosts/chaski/services/cgit.nix) | 0 |
2 files changed, 0 insertions, 54 deletions
diff --git a/hosts/chaski/services/coturn.nix b/hosts/chaski/services/coturn.nix deleted file mode 100644 index 54ec6d6..0000000 --- a/hosts/chaski/services/coturn.nix +++ /dev/null @@ -1,54 +0,0 @@ -{pkgs, config, ...}: - -{ - services.coturn = { - enable = true; - realm = "chaski.stuebinm.eu"; - no-cli = true; - lt-cred-mech = true; - extraConfig = '' - verbose - fingerprint - external-ip=95.217.159.23 - user=chaski:chaski - server-name=chaski.stuebinm.eu - #mobility - #listening-ip=95.217.159.23 - prometheus - ''; - - cert = config.security.acme.certs."chaski.stuebinm.eu".directory + "full.pem"; - pkey = config.security.acme.certs."chaski.stuebinm.eu".directory + "key.pem"; - }; - - security.acme = { - email = "stuebinm@disroot.org"; - acceptTerms = true; - }; - - # just here to serve acme challanges - services.nginx = { - enable = true; - user = "turnserver"; - virtualHosts."chaski.stuebinm.eu" = { - root = "/var/www"; - enableACME = true; - }; - }; - - networking.firewall = with config.services.coturn; { - allowedTCPPorts = [ - 80 # for acme challanges - listening-port tls-listening-port - (listening-port +1) (tls-listening-port +1) - ]; - allowedUDPPorts = [ - listening-port - tls-listening-port - (listening-port +1) (tls-listening-port +1) - ]; - allowedUDPPortRanges = [ - { from = min-port; to = max-port; } - ]; - }; -} diff --git a/hosts/chaski/services/cgit.nix b/hosts/flora/services/cgit.nix index 094bfd5..094bfd5 100644 --- a/hosts/chaski/services/cgit.nix +++ b/hosts/flora/services/cgit.nix |