nixfiles/hosts/koi/containers/sharkey/default.nix

30 lines
591 B
Nix
Raw Normal View History

2024-01-08 07:49:51 +03:00
{ abs, pkgs, ... }@inputs:
{
imports = [
((import (abs "lib/containers.nix") inputs).mkDockerComposeContainer {
directory = ./.;
})
];
systemd.tmpfiles.rules = [
"d /mnt/puffer/Sharkey 0777 root root -"
"d /srv/Sharkey 0777 root root -"
2024-01-08 07:49:51 +03:00
];
services.nginx.virtualHosts."very.stupid.fish" = {
forceSSL = true;
useACMEHost = "stupid.fish";
2024-05-17 14:24:35 +03:00
http2 = true;
2024-01-08 07:49:51 +03:00
extraConfig = ''
client_max_body_size 250M;
'';
2024-01-08 07:49:51 +03:00
locations."/" = {
2024-08-03 22:33:50 +03:00
proxyPass = "http://web.sharkey.docker$request_uri";
2024-01-08 07:49:51 +03:00
proxyWebsockets = true;
};
};
}