2024-07-20 17:02:26 +02:00
|
|
|
{ inputs, outputs, lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
2024-07-27 12:04:48 +02:00
|
|
|
# age.secrets."nextcloud.adminpass" = {
|
|
|
|
# rekeyFile = "${inputs.self}/secrets/home/jeeves/nextcloud/adminpass.age";
|
|
|
|
# mode = "770";
|
|
|
|
# owner = "nextcloud";
|
|
|
|
# group = "nextcloud";
|
|
|
|
# };
|
|
|
|
|
2024-07-20 17:02:26 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
# config.services.nextcloud.package
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.openresty;
|
2024-07-27 12:04:48 +02:00
|
|
|
# virtualHosts."_.${config.networking.hostName}.local" = {
|
2024-07-20 17:02:26 +02:00
|
|
|
# # listen = [
|
|
|
|
# # {
|
|
|
|
# # addr = "127.0.0.1";
|
|
|
|
# # port = 1234;
|
|
|
|
# # }
|
|
|
|
# # ];
|
|
|
|
# enableACME = false;
|
|
|
|
# forceSSL = false;
|
|
|
|
# locations."/".proxyPass = "http://127.0.0.1:1234";
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
}
|