This commit is contained in:
Hadi 2024-06-19 23:28:13 +02:00
parent ad339a19a6
commit c852176e0d
2 changed files with 19 additions and 21 deletions

View File

@ -8,7 +8,7 @@ in{
enable = true; enable = true;
config = { config = {
DOMAIN = url; DOMAIN = url;
SIGNUPS_ALLOWED = false; SIGNUPS_ALLOWED = true;
ROCKET_ADDRESS = "127.0.0.1"; ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = port; ROCKET_PORT = port;
ROCKET_LOG = "critical"; ROCKET_LOG = "critical";
@ -16,10 +16,7 @@ in{
}; };
services.nginx.virtualHosts.${hostname} = { services.nginx.virtualHosts.${hostname} = {
enableACME = true; enableACME = true;
forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:${port}"; };
locations."/" = {
proxyPass = "http://127.0.0.1:${port}";
};
}; };
networking.firewall.allowedTCPPorts = [ port ]; networking.firewall.allowedTCPPorts = [ port ];
} }

View File

@ -8,6 +8,7 @@
../modules/server/cloudflare-dyndns.nix ../modules/server/cloudflare-dyndns.nix
../modules/server/nginx.nix ../modules/server/nginx.nix
../modules/server/nextcloud.nix ../modules/server/nextcloud.nix
../modules/server/vaultwarden.nix
]; ];
# Bootloader. # Bootloader.