diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-24 18:10:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-24 18:10:20 +0100 |
commit | b0781dbc85da7bba5a3a9209ca4d3b3900eea7b5 (patch) | |
tree | fd4cd0a448568b42105ad857d847ed2c5c786b51 /virtual/modules/websites/tools/mastodon/mastodon.nix | |
parent | 2abb172bacad70f5b7b451df2a1a984bfff4a2da (diff) | |
download | Nix-b0781dbc85da7bba5a3a9209ca4d3b3900eea7b5.tar.gz Nix-b0781dbc85da7bba5a3a9209ca4d3b3900eea7b5.tar.zst Nix-b0781dbc85da7bba5a3a9209ca4d3b3900eea7b5.zip |
Make redis connections abstract
Diffstat (limited to 'virtual/modules/websites/tools/mastodon/mastodon.nix')
-rw-r--r-- | virtual/modules/websites/tools/mastodon/mastodon.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virtual/modules/websites/tools/mastodon/mastodon.nix b/virtual/modules/websites/tools/mastodon/mastodon.nix index cb8bfc8..e6b396b 100644 --- a/virtual/modules/websites/tools/mastodon/mastodon.nix +++ b/virtual/modules/websites/tools/mastodon/mastodon.nix | |||
@@ -64,9 +64,9 @@ let | |||
64 | buildInputs = [ yarnModules gems ]; | 64 | buildInputs = [ yarnModules gems ]; |
65 | }); | 65 | }); |
66 | config = writeText "mastodon_environment" '' | 66 | config = writeText "mastodon_environment" '' |
67 | REDIS_HOST=localhost | 67 | REDIS_HOST=${env.redis.host} |
68 | REDIS_PORT=6379 | 68 | REDIS_PORT=${env.redis.port} |
69 | REDIS_DB=13 | 69 | REDIS_DB=${env.redis.db} |
70 | DB_HOST=/run/postgresql | 70 | DB_HOST=/run/postgresql |
71 | DB_USER=mastodon | 71 | DB_USER=mastodon |
72 | DB_NAME=mastodon | 72 | DB_NAME=mastodon |