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

32 lines
764 B
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }: {
virtualisation.oci-containers.containers = {
anonymousoverflow = {
image = "ghcr.io/httpjamesm/anonymousoverflow:release";
ports = [
"7344:8080"
];
environment = {
APP_URL = "https://anonymousoverflow.4o1x5.dev";
JWT_SIGNING_SECRET = "${config.age.secrets.anonymousoverflow.path}";
2024-05-29 17:15:20 +02:00
};
};
};
services.nginx = {
virtualHosts = {
"anonymousoverflow.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:7344";
extraConfig = ''
access_log /var/log/nginx/$server_name-access.log json_analytics;
'';
2024-05-29 17:15:20 +02:00
};
};
};
};
}