diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-26 14:51:19 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-26 14:57:15 +0100 |
commit | 7ebcaad53a3261d8a4aefd8a64c5c7d9d8ac2fa0 (patch) | |
tree | 955c11eb61c79333296cfb82f49836bd7e3eca70 /nixops/modules/websites/tools/diaspora | |
parent | bad8f8d3cfaf48e6693f9718857a4648a86b0d37 (diff) | |
download | Nix-7ebcaad53a3261d8a4aefd8a64c5c7d9d8ac2fa0.tar.gz Nix-7ebcaad53a3261d8a4aefd8a64c5c7d9d8ac2fa0.tar.zst Nix-7ebcaad53a3261d8a4aefd8a64c5c7d9d8ac2fa0.zip |
Fix the SSL state for databases connections
Whenever possible, we use a socket connexion (all postgresql
connections, and a few mysql ones)
When remote (only mysql), we require SSL in the users database (cannot
be enforced globally)
Also, put pam configurations in a correct state
Fixes https://git.immae.eu/mantisbt/view.php?id=89
Fixes https://git.immae.eu/mantisbt/view.php?id=90
Fixes https://git.immae.eu/mantisbt/view.php?id=88
Diffstat (limited to 'nixops/modules/websites/tools/diaspora')
-rw-r--r-- | nixops/modules/websites/tools/diaspora/diaspora.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixops/modules/websites/tools/diaspora/diaspora.nix b/nixops/modules/websites/tools/diaspora/diaspora.nix index 798ebe6..765c0a5 100644 --- a/nixops/modules/websites/tools/diaspora/diaspora.nix +++ b/nixops/modules/websites/tools/diaspora/diaspora.nix | |||
@@ -99,9 +99,9 @@ let | |||
99 | database_config = writeText "database.yml" '' | 99 | database_config = writeText "database.yml" '' |
100 | postgresql: &postgresql | 100 | postgresql: &postgresql |
101 | adapter: postgresql | 101 | adapter: postgresql |
102 | host: db-1.immae.eu | 102 | host: "${env.postgresql.socket}" |
103 | port: 5432 | 103 | port: "${env.postgresql.port}" |
104 | username: "diaspora" | 104 | username: "${env.postgresql.user}" |
105 | password: "${env.postgresql.password}" | 105 | password: "${env.postgresql.password}" |
106 | encoding: unicode | 106 | encoding: unicode |
107 | common: &common | 107 | common: &common |
@@ -113,7 +113,7 @@ let | |||
113 | database: diaspora_development | 113 | database: diaspora_development |
114 | production: | 114 | production: |
115 | <<: *combined | 115 | <<: *combined |
116 | database: diaspora | 116 | database: ${env.postgresql.database} |
117 | test: | 117 | test: |
118 | <<: *combined | 118 | <<: *combined |
119 | database: "diaspora_test" | 119 | database: "diaspora_test" |