forked from nico/dots
caddy: add an option to set the authentication domain
This commit is contained in:
parent
aefc1ad786
commit
b17a78cc4e
1 changed files with 9 additions and 0 deletions
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
homelab.publicDomain= lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
};
|
||||||
|
homelab.authDomain = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
};
|
||||||
homelab.domain = lib.mkOption {
|
homelab.domain = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
};
|
};
|
||||||
|
|
@ -9,6 +15,9 @@
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
homelab.domain = "${config.networking.hostName}.astolfo.org";
|
homelab.domain = "${config.networking.hostName}.astolfo.org";
|
||||||
|
homelab.publicDomain = "astolfo.org";
|
||||||
|
homelab.authDomain = lib.mkDefault "sso.${config.homelab.publicDomain}";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue