Enable cinny web server via docker
This commit is contained in:
parent
0fe6c445a1
commit
a200642072
31
nixos/server/package-configs/cinny/default.nix
Normal file
31
nixos/server/package-configs/cinny/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -16,5 +16,6 @@
|
|||
./roundcube
|
||||
./coturn
|
||||
./dashboard
|
||||
./cinny
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue