2020-07-12 15:02:50 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.nginx.virtualHosts.gerrit = {
|
|
|
|
serverName = "cl.tvl.fyi";
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
location / {
|
|
|
|
proxy_pass http://localhost:4778;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2020-11-29 04:18:20 +01:00
|
|
|
# The :443 suffix is a workaround for https://b.tvl.fyi/issues/88.
|
|
|
|
proxy_set_header Host $host:443;
|
2020-07-12 15:02:50 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|