colin
9b66aecf1b
SRV and MX _could_ have more structure (priority, etc). not sure the best path there (option submodule, i guess).
22 lines
647 B
Nix
22 lines
647 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.nginx.virtualHosts."nixcache.uninsane.org" = {
|
|
addSSL = true;
|
|
enableACME = true;
|
|
# inherit kTLS;
|
|
# serverAliases = [ "nixcache" ];
|
|
locations."/".extraConfig = ''
|
|
proxy_pass http://localhost:${toString config.services.nix-serve.port};
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
'';
|
|
};
|
|
|
|
sane.services.trust-dns.zones."uninsane.org".inet.CNAME."nixcache" = [ "native" ];
|
|
|
|
sane.services.nixserve.enable = true;
|
|
sane.services.nixserve.sopsFile = ../../../secrets/servo.yaml;
|
|
}
|