Mastodon: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add fix for Caddy need access to mastodon socket |
||
Line 81: | Line 81: | ||
# Caddy requires file and socket access | # Caddy requires file and socket access | ||
users.users.caddy.extraGroups = [ "mastodon" ]; | users.users.caddy.extraGroups = [ "mastodon" ]; | ||
# Caddy systemd unit needs readwrite permissions to /run/mastodon-web | |||
systemd.services.caddy.serviceConfig.ReadWriteDirectories = lib.mkForce [ "/var/lib/caddy" "/run/mastodon-web" ]; | |||
</syntaxHighlight> | </syntaxHighlight> |