mastodon: Save redis state over reboots
This commit is contained in:
parent
c25afed065
commit
7671566751
1 changed files with 19 additions and 16 deletions
|
@ -7,24 +7,27 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.chvp.services.mastodon.enable {
|
config = lib.mkIf config.chvp.services.mastodon.enable {
|
||||||
chvp.services.nginx.hosts = [{
|
chvp = {
|
||||||
fqdn = "social.chvp.be";
|
base.zfs.systemLinks = [{ path = "/var/lib/redis-mastodon"; type = "cache"; }];
|
||||||
options = {
|
services.nginx.hosts = [{
|
||||||
root = "${pkgs.mastodon}/public/";
|
fqdn = "social.chvp.be";
|
||||||
locations = {
|
options = {
|
||||||
"/system/".alias = "/var/lib/mastodon/public-system/";
|
root = "${pkgs.mastodon}/public/";
|
||||||
"/".tryFiles = "$uri @proxy";
|
locations = {
|
||||||
"@proxy" = {
|
"/system/".alias = "/var/lib/mastodon/public-system/";
|
||||||
proxyPass = "http://unix:/run/mastodon-web/web.socket";
|
"/".tryFiles = "$uri @proxy";
|
||||||
proxyWebsockets = true;
|
"@proxy" = {
|
||||||
};
|
proxyPass = "http://unix:/run/mastodon-web/web.socket";
|
||||||
"/api/v1/streaming" = {
|
proxyWebsockets = true;
|
||||||
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
|
};
|
||||||
proxyWebsockets = true;
|
"/api/v1/streaming" = {
|
||||||
|
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}];
|
||||||
}];
|
};
|
||||||
users = {
|
users = {
|
||||||
users = {
|
users = {
|
||||||
mastodon.uid = 989;
|
mastodon.uid = 989;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue