2021-12-25 15:06:15 +01:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.nginx.virtualHosts."auth.tvl.fyi" = {
|
|
|
|
serverName = "auth.tvl.fyi";
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
extraConfig = ''
|
2023-02-01 10:25:57 +01:00
|
|
|
# increase buffer size for large headers
|
|
|
|
proxy_buffers 8 16k;
|
|
|
|
proxy_buffer_size 16k;
|
|
|
|
|
2021-12-25 15:06:15 +01:00
|
|
|
location / {
|
2022-10-03 10:08:42 +02:00
|
|
|
proxy_pass http://localhost:${toString config.services.keycloak.settings.http-port};
|
2021-12-25 15:06:15 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|