44 lines
767 B
Nix
44 lines
767 B
Nix
|
{ pkgs, config, ... }: {
|
||
|
|
||
|
virtualisation.oci-containers.containers = {
|
||
|
quetre = {
|
||
|
image = "quay.io/pussthecatorg/quetre:latest";
|
||
|
extraOptions = [
|
||
|
"--network=host"
|
||
|
];
|
||
|
environment = {
|
||
|
NODE_ENV = "production";
|
||
|
PORT = "2355";
|
||
|
CACHE_PERIOD = "24h";
|
||
|
|
||
|
REDIS_URL = "localhost:3442";
|
||
|
REDIS_TTL = "3600";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
};
|
||
|
services.redis.servers = {
|
||
|
quetre = {
|
||
|
port = 3442;
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx = {
|
||
|
|
||
|
virtualHosts = {
|
||
|
"quetre.${config.networking.domain}" =
|
||
|
{
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
|
||
|
locations."/" = {
|
||
|
proxyPass = " http://127.0.0.1:2355";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|