rearranged nginx listen configuration for nextcloud service
This commit is contained in:
parent
4af6798b5d
commit
0e1a7c0830
1 changed files with 10 additions and 10 deletions
|
|
@ -18,16 +18,6 @@
|
||||||
hostName = "nextcloud.srazka.com";
|
hostName = "nextcloud.srazka.com";
|
||||||
https = true;
|
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 = {
|
config = {
|
||||||
adminuser = "admin";
|
adminuser = "admin";
|
||||||
adminpassFile = config.age.secrets."nextcloud-admin-pass".path;
|
adminpassFile = config.age.secrets."nextcloud-admin-pass".path;
|
||||||
|
|
@ -42,4 +32,14 @@
|
||||||
default_phone_region = "NL";
|
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;
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue