infrastructure/hosts/hydrogen/services/nginx/personal-websites.nix

22 lines
440 B
Nix
Raw Normal View History

{ ... }: {
services.nginx.virtualHosts = {
"fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations."/".return =
''301 "$scheme://laurent.fainsin.bzh$request_uri"'';
};
"laurent.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
root = "/srv/www/";
};
default = {
default = true;
locations."/".return = ''301 "$scheme://fainsin.bzh" '';
};
};
}