From cf870d4e43ff80de4f2684e4380583d3d3b083e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 12 Feb 2024 15:57:41 +0200 Subject: [PATCH] caddy: irc.jakstys.lt --- hosts/vno1-oh2/configuration.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index 0966c8e..b036fe8 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -266,17 +266,6 @@ reverse_proxy 127.0.0.1:8123 tls {$CREDENTIALS_DIRECTORY}/hass.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/hass.jakstys.lt-key.pem ''; - "beta.jakstys.lt".extraConfig = '' - handle /.well-known/carddav { - redir https://cdav.migadu.com/ - } - handle /.well-known/caldav { - redir https://cdav.migadu.com/ - } - handle { - respond "okz" 200 - } - ''; "grafana.jakstys.lt".extraConfig = '' @denied not remote_ip ${myData.subnets.tailscale.cidr} abort @denied @@ -309,6 +298,15 @@ "www.jakstys.lt".extraConfig = '' redir https://jakstys.lt ''; + "irc.jakstys.lt".extraConfig = '' + @denied not remote_ip ${myData.subnets.tailscale.cidr} + abort @denied + + root * ${pkgs.gamja} + file_server browse { + precompressed br gzip + } + ''; "dl.jakstys.lt".extraConfig = '' root * /var/www/dl file_server browse { @@ -524,7 +522,7 @@ listen = [ "unix+admin://" ":${toString myData.ports.soju}" - "ws+insecure://0.0.0.0:${toString myData.ports.soju-ws}" + "ws+insecure://:${toString myData.ports.soju-ws}" ]; tlsCertificate = "/run/soju/cert.pem"; tlsCertificateKey = "/run/soju/key.pem";