diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-21T23·40-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-23T22·09+0000 |
commit | 7101cc5375a15f73966e0ea7ba596cf222cc2947 (patch) | |
tree | b56dd75da102ec11b4d51608af03236a69ae4246 /ops/nixos/www/b.tvl.fyi.nix | |
parent | 974c2e05af96ca2681239e41b1281cdb0d22347f (diff) |
feat(ops/nixos): Deploy Panettone to Whitby r/1439
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>
Diffstat (limited to 'ops/nixos/www/b.tvl.fyi.nix')
-rw-r--r-- | ops/nixos/www/b.tvl.fyi.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ops/nixos/www/b.tvl.fyi.nix b/ops/nixos/www/b.tvl.fyi.nix new file mode 100644 index 000000000000..3d8a4068aa11 --- /dev/null +++ b/ops/nixos/www/b.tvl.fyi.nix @@ -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}; + } + ''; + }; + }; +} |