All checks were successful
Flake checks / Check (pull_request) Successful in 5m52s
This works towards having reusable modules * `config.pub-solar-os.networking.domain` is used for the main domain * `config.pub-solar-os.privacyPolicUrl` links towards the privacy policy * `config.pub-solar-os.imprintUrl` links towards the imprint * `config.pub-solar-os.auth.enable` enables the keycloak installation. This is needed because `config.pub-solar-os.auth` has to be available everywhere, but we do not want to install keycloak everywhere. * `config.pub-solar-os.auth.realm` sets the keycloak realm name
19 lines
348 B
Nix
19 lines
348 B
Nix
{ config
|
|
, lib
|
|
, pkgs
|
|
, flake
|
|
, ...
|
|
}:
|
|
{
|
|
services.caddy = {
|
|
enable = lib.mkForce true;
|
|
group = config.pub-solar-os.authentication.robot.username;
|
|
email = config.pub-solar-os.adminEmail;
|
|
enableReload = true;
|
|
globalConfig = lib.mkForce ''
|
|
grace_period 60s
|
|
'';
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
}
|