From 1ea959ffb66c8e27f9f6e48060023fa07db865af Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Mon, 15 May 2023 16:50:29 +0200 Subject: add news --- hosts/cirrus/nextcloud-proxy.nix | 12 ++++++++++++ hosts/cirrus/wireguard-server.nix | 8 ++++++++ hosts/dishwasher/microvms.nix | 4 ++++ 3 files changed, 24 insertions(+) (limited to 'hosts') diff --git a/hosts/cirrus/nextcloud-proxy.nix b/hosts/cirrus/nextcloud-proxy.nix index 7a4fa67..3b5166a 100644 --- a/hosts/cirrus/nextcloud-proxy.nix +++ b/hosts/cirrus/nextcloud-proxy.nix @@ -48,5 +48,17 @@ }; }; }; + "news.oxapentane.com" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + client_max_body_size 32M; + ''; + locations = { + "/" = { + proxyPass = "http://10.34.45.102:8080"; + }; + }; + }; }; } diff --git a/hosts/cirrus/wireguard-server.nix b/hosts/cirrus/wireguard-server.nix index d9fc754..526e8db 100644 --- a/hosts/cirrus/wireguard-server.nix +++ b/hosts/cirrus/wireguard-server.nix @@ -95,6 +95,14 @@ PersistentKeepalive = 25; }; } + # news + { + wireguardPeerConfig = { + PublicKey = "guzNmsPcQw4EGSLU3X0SP+WPKAcoMc+xv9SLWdHV1V0="; + AllowedIPs = [ "10.34.45.102/32" ]; + PersistentKeepalive = 25; + }; + } ]; }; networks."oxaproxy" = { diff --git a/hosts/dishwasher/microvms.nix b/hosts/dishwasher/microvms.nix index e395f10..e5cc7c8 100644 --- a/hosts/dishwasher/microvms.nix +++ b/hosts/dishwasher/microvms.nix @@ -8,5 +8,9 @@ flake = inputs.self; updateFlake = "github:oxapentane/nix-config/master"; }; + news = { + flake = inputs.self; + updateFlake = "github:oxapentane/nix-config/master"; + }; }; } -- cgit v1.3.1