its working
This commit is contained in:
parent
2a930a6c9d
commit
faa088191c
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue