diff options
Diffstat (limited to 'nixops/modules/websites/chloe')
-rw-r--r-- | nixops/modules/websites/chloe/chloe.nix | 3 | ||||
-rw-r--r-- | nixops/modules/websites/chloe/chloe_config_dev/connect.php | 11 | ||||
-rw-r--r-- | nixops/modules/websites/chloe/chloe_config_prod/connect.php | 11 |
3 files changed, 22 insertions, 3 deletions
diff --git a/nixops/modules/websites/chloe/chloe.nix b/nixops/modules/websites/chloe/chloe.nix index 355cca7..9752db6 100644 --- a/nixops/modules/websites/chloe/chloe.nix +++ b/nixops/modules/websites/chloe/chloe.nix | |||
@@ -23,7 +23,8 @@ let | |||
23 | env[SPIP_LDAP_SEARCH_DN] = "${config.ldap.dn}" | 23 | env[SPIP_LDAP_SEARCH_DN] = "${config.ldap.dn}" |
24 | env[SPIP_LDAP_SEARCH_PW] = "${config.ldap.password}" | 24 | env[SPIP_LDAP_SEARCH_PW] = "${config.ldap.password}" |
25 | env[SPIP_LDAP_SEARCH] = "${config.ldap.search}" | 25 | env[SPIP_LDAP_SEARCH] = "${config.ldap.search}" |
26 | env[SPIP_MYSQL_HOST] = "db-1.immae.eu" | 26 | env[SPIP_MYSQL_HOST] = "${config.mysql.host}" |
27 | env[SPIP_MYSQL_PORT] = "${config.mysql.port}" | ||
27 | env[SPIP_MYSQL_DB] = "${config.mysql.name}" | 28 | env[SPIP_MYSQL_DB] = "${config.mysql.name}" |
28 | env[SPIP_MYSQL_USER] = "${config.mysql.user}" | 29 | env[SPIP_MYSQL_USER] = "${config.mysql.user}" |
29 | env[SPIP_MYSQL_PASSWORD] = "${config.mysql.password}" | 30 | env[SPIP_MYSQL_PASSWORD] = "${config.mysql.password}" |
diff --git a/nixops/modules/websites/chloe/chloe_config_dev/connect.php b/nixops/modules/websites/chloe/chloe_config_dev/connect.php index 2e4439f..18b0933 100644 --- a/nixops/modules/websites/chloe/chloe_config_dev/connect.php +++ b/nixops/modules/websites/chloe/chloe_config_dev/connect.php | |||
@@ -2,5 +2,14 @@ | |||
2 | if (!defined("_ECRIRE_INC_VERSION")) return; | 2 | if (!defined("_ECRIRE_INC_VERSION")) return; |
3 | define('_MYSQL_SET_SQL_MODE',true); | 3 | define('_MYSQL_SET_SQL_MODE',true); |
4 | $GLOBALS['spip_connect_version'] = 0.7; | 4 | $GLOBALS['spip_connect_version'] = 0.7; |
5 | spip_connect_db(getenv("SPIP_MYSQL_HOST"),'',getenv("SPIP_MYSQL_USER"),getenv("SPIP_MYSQL_PASSWORD"),getenv("SPIP_MYSQL_DB"),'mysql', 'spip','ldap.php'); | 5 | spip_connect_db( |
6 | getenv("SPIP_MYSQL_HOST"), | ||
7 | getenv("SPIP_MYSQL_PORT"), | ||
8 | getenv("SPIP_MYSQL_USER"), | ||
9 | getenv("SPIP_MYSQL_PASSWORD"), | ||
10 | getenv("SPIP_MYSQL_DB"), | ||
11 | 'mysql', | ||
12 | 'spip', | ||
13 | 'ldap.php' | ||
14 | ); | ||
6 | ?> | 15 | ?> |
diff --git a/nixops/modules/websites/chloe/chloe_config_prod/connect.php b/nixops/modules/websites/chloe/chloe_config_prod/connect.php index 2e4439f..18b0933 100644 --- a/nixops/modules/websites/chloe/chloe_config_prod/connect.php +++ b/nixops/modules/websites/chloe/chloe_config_prod/connect.php | |||
@@ -2,5 +2,14 @@ | |||
2 | if (!defined("_ECRIRE_INC_VERSION")) return; | 2 | if (!defined("_ECRIRE_INC_VERSION")) return; |
3 | define('_MYSQL_SET_SQL_MODE',true); | 3 | define('_MYSQL_SET_SQL_MODE',true); |
4 | $GLOBALS['spip_connect_version'] = 0.7; | 4 | $GLOBALS['spip_connect_version'] = 0.7; |
5 | spip_connect_db(getenv("SPIP_MYSQL_HOST"),'',getenv("SPIP_MYSQL_USER"),getenv("SPIP_MYSQL_PASSWORD"),getenv("SPIP_MYSQL_DB"),'mysql', 'spip','ldap.php'); | 5 | spip_connect_db( |
6 | getenv("SPIP_MYSQL_HOST"), | ||
7 | getenv("SPIP_MYSQL_PORT"), | ||
8 | getenv("SPIP_MYSQL_USER"), | ||
9 | getenv("SPIP_MYSQL_PASSWORD"), | ||
10 | getenv("SPIP_MYSQL_DB"), | ||
11 | 'mysql', | ||
12 | 'spip', | ||
13 | 'ldap.php' | ||
14 | ); | ||
6 | ?> | 15 | ?> |