Enable cinny web server via docker

This commit is contained in:
Lillian Violet 2024-03-31 22:06:47 +02:00
parent 0fe6c445a1
commit a200642072
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
config,
pkgs,
inputs,
lib,
...
}: let
port = 2143;
in {
virtualisation.oci-containers.containers."cinny" = {
autoStart = true;
ports = ["${toString port}:80"];
image = "cinny:latest";
};
services.nginx = {
enable = true;
virtualHosts = {
"cinny.gladtherescake.eu" = {
## Force HTTP redirect to HTTPS
forceSSL = true;
## LetsEncrypt
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};
};
};
}

View file

@ -16,5 +16,6 @@
./roundcube
./coturn
./dashboard
./cinny
];
}