feat(ops/nixos): Deploy Panettone to Whitby

Deploy Panettone to whitby as a systemd service, proxied to from an
nginx virtual host listening at b.tvl.fyi

Change-Id: I69755566151a45120e6b3453751af0e9291fa241
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1339
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Griffin Smith 2020-07-21 19:40:49 -04:00 committed by glittershark
parent 974c2e05af
commit 7101cc5375
3 changed files with 64 additions and 2 deletions

View file

@ -0,0 +1,21 @@
{ config, ... }:
{
imports = [
./base.nix
];
config = {
services.nginx.virtualHosts."b.tvl.fyi" = {
serverName = "b.tvl.fyi";
enableACME = true;
forceSSL = true;
extraConfig = ''
location / {
proxy_pass http://localhost:${toString config.services.depot.panettone.port};
}
'';
};
};
}