X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fprivate%2Fwebsites%2Ftools%2Fmastodon%2Fdefault.nix;h=d67ae2bcb35580dd3ae46c1ea5bc0eefe6514802;hb=29f8cb850d74b456d6481a456311bbf5361d328c;hp=d742a33a38a4a29c3dbd9db0292d3f7a163dc002;hpb=4288c2f2431fb782b0d512b1b3749187f2374b6a;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/tools/mastodon/default.nix b/modules/private/websites/tools/mastodon/default.nix index d742a33..d67ae2b 100644 --- a/modules/private/websites/tools/mastodon/default.nix +++ b/modules/private/websites/tools/mastodon/default.nix @@ -63,15 +63,28 @@ in { socketsPrefix = "live_immae"; dataDir = "/var/lib/mastodon_immae"; }; + services.filesWatcher.mastodon-streaming = { + restart = true; + paths = [ mcfg.configFile ]; + }; + services.filesWatcher.mastodon-web = { + restart = true; + paths = [ mcfg.configFile ]; + }; + services.filesWatcher.mastodon-sidekiq = { + restart = true; + paths = [ mcfg.configFile ]; + }; + - services.websites.tools.modules = [ + services.websites.env.tools.modules = [ "headers" "proxy" "proxy_wstunnel" "proxy_http" ]; system.extraSystemBuilderCmds = '' mkdir -p $out/webapps ln -s ${mcfg.workdir}/public/ $out/webapps/tools_mastodon ''; - services.websites.tools.vhostConfs.mastodon = { + services.websites.env.tools.vhostConfs.mastodon = { certName = "eldiron"; addToCerts = true; hosts = ["mastodon.immae.eu" ];