This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / configs / services / paint / default.nix
1.1 kB 40 lines
1{ pkgs, ... }: 2let 3 domain = "paint.lassul.us"; 4 port = 3092; 5in 6{ 7 # WBO collaborative whiteboard. Public like the pad: anyone with the link to 8 # /boards/<name> can draw, boards are kept as JSON in the state dir. 9 systemd.services.whitebophir = { 10 description = "WBO collaborative whiteboard"; 11 wantedBy = [ "multi-user.target" ]; 12 after = [ "network.target" ]; 13 environment = { 14 PORT = toString port; 15 HOST = "127.0.0.1"; 16 WBO_HISTORY_DIR = "/var/lib/whitebophir"; 17 }; 18 serviceConfig = { 19 ExecStart = "${pkgs.whitebophir}/bin/whitebophir"; 20 DynamicUser = true; 21 StateDirectory = "whitebophir"; 22 Restart = "always"; 23 MemoryMax = "1G"; 24 }; 25 }; 26 27 # DynamicUser + StateDirectory make /var/lib/whitebophir only a symlink 28 lass.backup.state.whitebophir.folders = [ "/var/lib/private/whitebophir" ]; 29 30 services.nginx.virtualHosts.${domain} = { 31 enableACME = true; 32 forceSSL = true; 33 locations."/" = { 34 proxyPass = "http://127.0.0.1:${toString port}"; 35 recommendedProxySettings = true; 36 # socket.io 37 proxyWebsockets = true; 38 }; 39 }; 40}