X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=virtual%2Fmodules%2Fwebsites%2Ftools%2Fmastodon%2Fmastodon.nix;h=770aa2cb5b584cf3157ae92a7116206a4a032c85;hb=6f4574e7b57043340a2a520c4bbeb17dde72e0ea;hp=cb8bfc8b4b3d2a45363e361c2f0668f159f32612;hpb=f27f4c9de97789e1bff31e2939395a8c6c50279d;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/virtual/modules/websites/tools/mastodon/mastodon.nix b/virtual/modules/websites/tools/mastodon/mastodon.nix index cb8bfc8..770aa2c 100644 --- a/virtual/modules/websites/tools/mastodon/mastodon.nix +++ b/virtual/modules/websites/tools/mastodon/mastodon.nix @@ -64,14 +64,14 @@ let buildInputs = [ yarnModules gems ]; }); config = writeText "mastodon_environment" '' - REDIS_HOST=localhost - REDIS_PORT=6379 - REDIS_DB=13 - DB_HOST=/run/postgresql - DB_USER=mastodon - DB_NAME=mastodon + REDIS_HOST=${env.redis.host} + REDIS_PORT=${env.redis.port} + REDIS_DB=${env.redis.db} + DB_HOST=${env.postgresql.socket} + DB_USER=${env.postgresql.user} + DB_NAME=${env.postgresql.database} DB_PASS=${env.postgresql.password} - DB_PORT=5432 + DB_PORT=${env.postgresql.port} LOCAL_DOMAIN=mastodon.immae.eu LOCAL_HTTPS=true