options.myServices.websites.chloe.integration.enable = lib.mkEnableOption "enable Chloe's website in integration";
config = lib.mkIf cfg.enable {
- services.duplyBackup.profiles.chloe_integration.rootDir = app.varDir;
secrets.keys."websites/chloe/integration" = {
user = apacheUser;
group = apacheGroup;
services.websites.env.integration.vhostConfs.chloe_integration = {
certName = "integration";
addToCerts = true;
- hosts = ["chloe.immae.eu" ];
+ hosts = ["test.chc.immae.dev" ];
root = webRoot;
extraConfig = [
''
<Location />
Use LDAPConnect
- Require ldap-group cn=chloe.immae.eu,cn=httpd,ou=services,dc=immae,dc=eu
+ Require ldap-group cn=chc.immae.dev,cn=httpd,ou=services,dc=immae,dc=eu
ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://osteopathe-cc.fr\"></html>"
</Location>
''