diff options
Diffstat (limited to 'modules/private/websites/chloe/integration.nix')
-rw-r--r-- | modules/private/websites/chloe/integration.nix | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/modules/private/websites/chloe/integration.nix b/modules/private/websites/chloe/integration.nix index ffae6ec..c4b79f8 100644 --- a/modules/private/websites/chloe/integration.nix +++ b/modules/private/websites/chloe/integration.nix | |||
@@ -15,29 +15,26 @@ in { | |||
15 | 15 | ||
16 | config = lib.mkIf cfg.enable { | 16 | config = lib.mkIf cfg.enable { |
17 | services.duplyBackup.profiles.chloe_integration.rootDir = app.varDir; | 17 | services.duplyBackup.profiles.chloe_integration.rootDir = app.varDir; |
18 | secrets.keys = [ | 18 | secrets.keys."websites/chloe/integration" = { |
19 | { | 19 | user = apacheUser; |
20 | dest = "websites/chloe/integration"; | 20 | group = apacheGroup; |
21 | user = apacheUser; | 21 | permissions = "0400"; |
22 | group = apacheGroup; | 22 | text = '' |
23 | permissions = "0400"; | 23 | SetEnv SPIP_CONFIG_DIR "${./config}" |
24 | text = '' | 24 | SetEnv SPIP_VAR_DIR "${app.varDir}" |
25 | SetEnv SPIP_CONFIG_DIR "${./config}" | 25 | SetEnv SPIP_SITE "chloe-${app.environment}" |
26 | SetEnv SPIP_VAR_DIR "${app.varDir}" | 26 | SetEnv SPIP_LDAP_BASE "dc=immae,dc=eu" |
27 | SetEnv SPIP_SITE "chloe-${app.environment}" | 27 | SetEnv SPIP_LDAP_HOST "ldaps://ldap.immae.eu" |
28 | SetEnv SPIP_LDAP_BASE "dc=immae,dc=eu" | 28 | SetEnv SPIP_LDAP_SEARCH_DN "${ccfg.ldap.dn}" |
29 | SetEnv SPIP_LDAP_HOST "ldaps://ldap.immae.eu" | 29 | SetEnv SPIP_LDAP_SEARCH_PW "${ccfg.ldap.password}" |
30 | SetEnv SPIP_LDAP_SEARCH_DN "${ccfg.ldap.dn}" | 30 | SetEnv SPIP_LDAP_SEARCH "${ccfg.ldap.filter}" |
31 | SetEnv SPIP_LDAP_SEARCH_PW "${ccfg.ldap.password}" | 31 | SetEnv SPIP_MYSQL_HOST "${ccfg.mysql.host}" |
32 | SetEnv SPIP_LDAP_SEARCH "${ccfg.ldap.filter}" | 32 | SetEnv SPIP_MYSQL_PORT "${ccfg.mysql.port}" |
33 | SetEnv SPIP_MYSQL_HOST "${ccfg.mysql.host}" | 33 | SetEnv SPIP_MYSQL_DB "${ccfg.mysql.database}" |
34 | SetEnv SPIP_MYSQL_PORT "${ccfg.mysql.port}" | 34 | SetEnv SPIP_MYSQL_USER "${ccfg.mysql.user}" |
35 | SetEnv SPIP_MYSQL_DB "${ccfg.mysql.database}" | 35 | SetEnv SPIP_MYSQL_PASSWORD "${ccfg.mysql.password}" |
36 | SetEnv SPIP_MYSQL_USER "${ccfg.mysql.user}" | 36 | ''; |
37 | SetEnv SPIP_MYSQL_PASSWORD "${ccfg.mysql.password}" | 37 | }; |
38 | ''; | ||
39 | } | ||
40 | ]; | ||
41 | systemd.services.phpfpm-chloe_integration.after = lib.mkAfter [ "mysql.service" ]; | 38 | systemd.services.phpfpm-chloe_integration.after = lib.mkAfter [ "mysql.service" ]; |
42 | systemd.services.phpfpm-chloe_integration.wants = [ "mysql.service" ]; | 39 | systemd.services.phpfpm-chloe_integration.wants = [ "mysql.service" ]; |
43 | services.phpfpm.pools.chloe_integration = { | 40 | services.phpfpm.pools.chloe_integration = { |