Simon Bruder
c0b743a65b
This is so I can only enable it when I don’t mind it generating tons of noise.
19 lines
370 B
Nix
19 lines
370 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
services.nginx.virtualHosts = builtins.listToAttrs (map
|
|
(fqdn: lib.nameValuePair fqdn {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
locations."/".extraConfig = ''
|
|
proxy_pass http://fuuko.vpn.sbruder.de/;
|
|
proxy_set_header Host ${fqdn};
|
|
'';
|
|
})
|
|
[
|
|
"media.sbruder.de"
|
|
"torrent.sbruder.de"
|
|
]);
|
|
}
|