From 0e1a7c0830e86d6a813d507c54b356fb8029c8c3 Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Wed, 15 Jul 2026 17:01:57 +0200 Subject: [PATCH] rearranged nginx listen configuration for nextcloud service --- nextcloud.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nextcloud.nix b/nextcloud.nix index 692aaad..622b631 100644 --- a/nextcloud.nix +++ b/nextcloud.nix @@ -18,16 +18,6 @@ hostName = "nextcloud.srazka.com"; https = true; - # Let Caddy handle TLS termination; nginx only listens on localhost. - # The nextcloud module creates the virtualhost at hostName; we override - # its listen address here. - services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [ - { - addr = "127.0.0.1"; - port = 8081; - } - ]; - config = { adminuser = "admin"; adminpassFile = config.age.secrets."nextcloud-admin-pass".path; @@ -42,4 +32,14 @@ default_phone_region = "NL"; }; }; + + # Let Caddy handle TLS termination; nginx only listens on localhost. + # The nextcloud module creates the virtualhost at hostName; we override + # its listen address here. + services.nginx.virtualHosts.${config.services.nextcloud.hostName}.listen = [ + { + addr = "127.0.0.1"; + port = 8081; + } + ]; }