Running Nixery on bugry is much more cost efficient (better traffic economics than on a cloud provider, and Nixery is mostly a traffic-heavy service), and frees up my Yandex Cloud credits for adding another builder. Change-Id: Id6c8c76b28a5ce13cc8b743ad6e72fffd19353fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/12997 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: tazjin <tazjin@tvl.su>
26 lines
509 B
Nix
26 lines
509 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./base.nix
|
|
];
|
|
|
|
config = {
|
|
services.nginx.virtualHosts."nixery.dev" = {
|
|
serverName = "nixery.dev";
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
acmeFallbackHost = {
|
|
"nixery-01" = "bugry.tvl.fyi";
|
|
"bugry" = "nixery-01.tvl.fyi";
|
|
}."${config.networking.hostName}";
|
|
|
|
extraConfig = ''
|
|
location / {
|
|
proxy_pass http://localhost:${toString config.services.depot.nixery.port};
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|