3446218455
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
40 lines
767 B
Nix
40 lines
767 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./forgejo.nix
|
|
./minecraft.nix
|
|
|
|
./sync
|
|
];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"eriedaberrie.me" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
acmeRoot = null;
|
|
serverAliases = [ "www.eriedaberrie.me" ];
|
|
locations."/".proxyPass = "http://127.0.0.1:8080/";
|
|
};
|
|
};
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "eriedaberrie@gmail.com";
|
|
certs = {
|
|
"eriedaberrie.me" = {
|
|
dnsProvider = "porkbun";
|
|
credentialsFile = config.age.secrets.porkbun-auth.path;
|
|
extraDomainNames = [
|
|
"www.eriedaberrie.me"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|