This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/privacy/quetre.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";
};
};
};
};
}