account: update the address used for authentication
This commit is contained in:
parent
ce0155d6ab
commit
acb49a2eb1
8 changed files with 11 additions and 11 deletions
|
@ -22,7 +22,7 @@
|
|||
"*.skynet.ie"
|
||||
"*.minecraft.games.skynet.ie"
|
||||
"*.pages.skynet.ie"
|
||||
"api.sso.skynet.ie"
|
||||
"api.account.skynet.ie"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
hosts = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"ldaps://sso.skynet.ie"
|
||||
"ldaps://account.skynet.ie"
|
||||
];
|
||||
description = lib.mdDoc "ldap domains";
|
||||
};
|
||||
|
@ -157,7 +157,7 @@
|
|||
$config['login_username_filter'] = "email";
|
||||
$config['ldap_public']['public'] = array(
|
||||
'name' => 'Public LDAP Addressbook',
|
||||
'hosts' => 'tls://sso.skynet.ie',
|
||||
'hosts' => 'tls://account.skynet.ie',
|
||||
'port' => 636 ,
|
||||
'user_specific' => false,
|
||||
'base_dn' => 'ou=users,dc=skynet,dc=ie',
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
servers = {
|
||||
main = {
|
||||
label = "Skynet";
|
||||
host = "sso.skynet.ie";
|
||||
host = "account.skynet.ie";
|
||||
port = 636;
|
||||
uid = "uid";
|
||||
encryption = "simple_tls";
|
||||
|
|
|
@ -45,7 +45,7 @@ Gonna use a priper nixos module for this
|
|||
|
||||
sub = mkOption {
|
||||
type = types.str;
|
||||
default = "sso";
|
||||
default = "account";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
sub = mkOption {
|
||||
type = types.str;
|
||||
default = "api.sso";
|
||||
default = "api.account";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -59,7 +59,7 @@
|
|||
locations."/".proxyPass = "http://localhost:${port_backend}";
|
||||
|
||||
extraConfig = ''
|
||||
add_header Access-Control-Allow-Origin "https://sso.${cfg.domain.base}.${cfg.domain.tld}";
|
||||
add_header Access-Control-Allow-Origin "https://account.${cfg.domain.base}.${cfg.domain.tld}";
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -70,7 +70,7 @@
|
|||
envFile = config.age.secrets.ldap_self_service.path;
|
||||
|
||||
ldap = {
|
||||
host = "ldaps://sso.skynet.ie";
|
||||
host = "ldaps://account.skynet.ie";
|
||||
admin = "uid=ldap_api,ou=users,dc=skynet,dc=ie";
|
||||
};
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
address = mkOption {
|
||||
type = types.str;
|
||||
default = "sso.skynet.ie";
|
||||
default = "account.skynet.ie";
|
||||
description = lib.mdDoc "The domain the ldap is behind";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue