its working

This commit is contained in:
baritone 2025-03-03 22:25:44 +01:00
parent 2a930a6c9d
commit faa088191c
4 changed files with 22 additions and 10 deletions

View file

@ -3,7 +3,7 @@
./services/openssh.nix ./services/openssh.nix
./services/forgejo.nix ./services/forgejo.nix
./services/vaultwarden.nix ./services/vaultwarden.nix
# ./services/jellyfin.nix ./services/jellyfin.nix
# ./services/mailserver.nix # ./services/mailserver.nix
./services/misc.nix ./services/misc.nix

View file

@ -1,4 +1,4 @@
{username ? throw "no username provided"}: {pkgs,...}: { {username ? throw "no username provided"}: {pkgs, ...}: {
imports = []; imports = [];
home.username = username; home.username = username;

View file

@ -33,13 +33,25 @@ in {
}; };
}; };
networking.firewall.allowedTCPPorts = [port]; networking.firewall.allowedTCPPorts = [80 443];
networking.firewall.allowedUDPPorts = [port]; networking.firewall.allowedUDPPorts = [80 443];
services.caddy = { services.nginx = {
enable = true; enable = true;
virtualHosts."git.spoodythe.one".extraConfig = '' recommendedGzipSettings = true;
reverse_proxy * ${host}:${toString port} recommendedOptimisation = true;
''; recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."git.spoodythe.one" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://${host}:${toString port}";
}; };
};
};
security.acme.acceptTerms = true;
security.acme.defaults.email = "snorre@altschul.dk";
} }

View file

@ -39,8 +39,8 @@ in {
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts."media.spoodythe.one" = { virtualHosts."media.spoodythe.one" = {
# addSSL = true; addSSL = true;
# enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${host}:${toString port}"; proxyPass = "http://${host}:${toString port}";
}; };