rearranged nginx listen configuration for nextcloud service

This commit is contained in:
Jakub Dorfman 2026-07-15 17:01:57 +02:00
parent 4af6798b5d
commit 0e1a7c0830

View file

@ -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;
}
];
}