-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cup-dragon): compose; ACME; forgejo themed/runner
- Loading branch information
1 parent
68d944d
commit 4ca33d5
Showing
7 changed files
with
107 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Compose runner | ||
|
||
```nix | ||
{{#include ../../../nixos/modules/compose-runner.nix}} | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ in { | |
hardware.enable = false; | ||
networking.enable = false; | ||
}; | ||
boot.plymouth.enable = true; | ||
boot.plymouth.enable = false; | ||
|
||
# Enable the Netdata daemon | ||
services.netdata.enable = lib.mkIf cfg.monitoring true; | ||
|
@@ -148,6 +148,18 @@ in { | |
}; | ||
services.nginx.sslDhparam = config.security.dhparams.params.nginx.path; | ||
|
||
# Default catch-all for unknown domains | ||
services.nginx.virtualHosts."_" = lib.mkIf config.services.nginx.enable { | ||
addSSL = true; | ||
extraConfig = '' | ||
log_not_found off; | ||
return 404; | ||
''; | ||
http3 = true; | ||
quic = true; | ||
useACMEHost = "dr460nf1r3.org"; | ||
}; | ||
|
||
# Need to explicitly open our web server ports | ||
networking.firewall = lib.mkIf config.services.nginx.enable { | ||
allowedTCPPorts = [80 443]; | ||
|
@@ -160,10 +172,24 @@ in { | |
"net.core.wmem_max" = 7500000; | ||
}; | ||
|
||
# Enable this so we don't get annoyed by the ACME TOS | ||
# SSL certs for the server | ||
security.acme = { | ||
acceptTerms = true; | ||
defaults.email = "[email protected]"; | ||
defaults = { | ||
group = "nginx"; | ||
email = "[email protected]"; | ||
}; | ||
certs."dr460nf1r3.org" = { | ||
extraDomainNames = ["*.dr460nf1r3.org"]; | ||
dnsProvider = "cloudflare"; | ||
dnsPropagationCheck = true; | ||
credentialsFile = config.sops.secrets."api_keys/cloudflare".path; | ||
}; | ||
}; | ||
sops.secrets."api_keys/cloudflare" = { | ||
mode = "0400"; | ||
owner = "acme"; | ||
path = "/run/secrets/api_keys/cloudflare"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters