diff options
author | lassulus <git@lassul.us> | 2023-07-08 17:03:10 +0200 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-07-08 17:03:15 +0200 |
commit | 6ee4f8c1c1847c901f76caf7548383c9af339a92 (patch) | |
tree | 40ce1c1fa86f7f0d4121390c16a8499f8bf81d36 /lass/1systems | |
parent | bf94b004efb08fa375a4115578a35f6fe7d38d98 (diff) |
l neoprism.r: add more services
Diffstat (limited to 'lass/1systems')
-rw-r--r-- | lass/1systems/neoprism/config.nix | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lass/1systems/neoprism/config.nix b/lass/1systems/neoprism/config.nix index 7b402f8a6..79402959e 100644 --- a/lass/1systems/neoprism/config.nix +++ b/lass/1systems/neoprism/config.nix @@ -4,6 +4,9 @@ imports = [ <stockholm/lass> <stockholm/lass/2configs/retiolum.nix> + <stockholm/lass/2configs/mail/internet-gateway.nix> + <stockholm/lass/2configs/binary-cache/server.nix> + <stockholm/lass/2configs/matrix.nix> <stockholm/lass/2configs/gsm-wiki.nix> # sync-containers @@ -26,7 +29,23 @@ krebs.build.host = config.krebs.hosts.neoprism; networking.firewall.allowedTCPPorts = [ 80 443 ]; - services.nginx.enable = true; security.acme.acceptTerms = true; security.acme.defaults.email = "acme@lassul.us"; + services.nginx = { + enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; + recommendedTlsSettings = true; + + enableReload = true; + + virtualHosts.default = { + default = true; + locations."= /etc/os-release".extraConfig = '' + default_type text/plain; + alias /etc/os-release; + ''; + locations."~ ^/.well-known/acme-challenge/".root = "/var/lib/acme/acme-challenge"; + }; + }; } |