Simon Bruder
0d92c932ed
This is not that good, because if I am at home, I want to have a fast connection without routing everything through the Internet first. I currently work around this by using an ssh tunnel for this.
21 lines
432 B
Nix
21 lines
432 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};
|
|
'';
|
|
})
|
|
[
|
|
"languagetool.sbruder.de"
|
|
"media.sbruder.de"
|
|
"photoprism.sbruder.de"
|
|
"torrent.sbruder.de"
|
|
]);
|
|
}
|