nixos-config/machines/vueko/services/fuuko-proxy.nix

20 lines
402 B
Nix
Raw Normal View History

{ 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};
'';
})
[
2023-03-01 15:12:17 +01:00
"languagetool.sbruder.de"
"media.sbruder.de"
"torrent.sbruder.de"
]);
}