Added forgejo, actual, and formatted some stuff

This commit is contained in:
fwastring 2025-09-23 13:23:13 +02:00
parent a6e1b359ef
commit 4e60d4fbc9
13 changed files with 293 additions and 130 deletions

View file

@ -21,6 +21,8 @@
../../moduler/uptime-kuma.nix
../../moduler/services/monitoring
../../moduler/services/headscale
../../moduler/services/actual
../../moduler/services/forgejo
# ../../moduler/wastring.nix
../../moduler/wedding.nix
];
@ -33,6 +35,14 @@
mode = "0440";
};
forgejo = {
enable = true;
};
actual = {
enable = true;
};
grafana = {
enable = true;
host = "127.0.0.1";
@ -72,34 +82,6 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII60tdNsG0z9q2jHmoTKvkeLQE6OF0bmTsDX1bpqpoG7 fw@jobb"
];
security.acme = {
acceptTerms = true;
defaults.email = "fredrik@wastring.com";
certs."shop.wastring.com" = {
dnsProvider = "gandiv5";
webroot = null;
credentialsFile = config.sops.secrets.gandi_key.path;
dnsPropagationCheck = true;
};
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."shop.wastring.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = true;
extraConfig =
"proxy_ssl_server_name on;"
+
# required when the server wants to use HTTP Authentication
"proxy_pass_header Authorization;";
};
};
};
networking.hostName = myhostname;