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/scribe.nix

31 lines
717 B
Nix

{ pkgs, config, ... }: {
services.scribe = {
enable = true;
appDomain = "scribe.${config.networking.domain}";
port = 7283;
# TODO , systemd doesnt like this, neither does it actually include the secrets
environmentFile = ''
GITHUB_PERSONAL_ACCESS_TOKEN=${config.age.secrets.github-token.path}
GITHUB_USERNAME=${config.age.secrets.github-username.path}
SECRET_KEY_BASE=${config.age.secrets.scribe-secret.path}
'';
};
services.nginx = {
virtualHosts = {
"scribe.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:7283";
};
};
};
};
}