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/gothub.nix
2024-05-29 17:15:20 +02:00

38 lines
971 B
Nix

{ pkgs, config, ... }: {
virtualisation.oci-containers.containers = {
gothub = {
image = "codeberg.org/gothub/gothub:latest";
ports = [
"4032:3000"
];
environment = {
DOCKER = "true";
GOTHUB_SETUP_COMPLETE = "true";
GOTHUB_PROXYING_ENABLED = "true";
GOTHUB_IP_LOGGED = "false";
GOTHUB_REQUEST_URL_LOGGED = "true";
GOTHUB_USER_AGENT_LOGGED = "true";
GOTHUB_DIAGNOSTIC_INFO_LOGGED = "false";
GOTHUB_INSTANCE_PRIVACY_POLICY = "https://4o1x5.dev/privacy-policy";
GOTHUB_INSTANCE_COUNTRY = "Hungary";
GOTHUB_INSTANCE_PROVIDER = "Telekom";
GOTHUB_INSTANCE_CLOUDFLARE = "false";
};
};
};
services.nginx = {
virtualHosts = {
"gothub.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:4032";
};
};
};
};
}