feat(ops/www): Point images.tvl.* at Nixery
Change-Id: I39f979c68e7b74f6da6a7da0f07aaa470886d451 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3346 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
5550180e7e
commit
7c16a71156
2 changed files with 23 additions and 0 deletions
|
@ -26,6 +26,7 @@ in {
|
|||
"${depot.path}/ops/modules/www/cl.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/code.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/cs.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/images.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/login.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/status.tvl.su.nix"
|
||||
"${depot.path}/ops/modules/www/tazj.in.nix"
|
||||
|
|
22
ops/modules/www/images.tvl.fyi.nix
Normal file
22
ops/modules/www/images.tvl.fyi.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
services.nginx.virtualHosts."images.tvl.fyi" = {
|
||||
serverName = "images.tvl.fyi";
|
||||
serverAliases = [ "images.tvl.su" ];
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
extraConfig = ''
|
||||
location / {
|
||||
proxy_pass http://localhost:${toString config.services.depot.nixery.port};
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue