29 lines
612 B
Nix
29 lines
612 B
Nix
{ pkgs, config, ... }: {
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
anonymousoverflow = {
|
|
image = "ghcr.io/httpjamesm/anonymousoverflow:release";
|
|
ports = [
|
|
"7344:8080"
|
|
];
|
|
environment = {
|
|
APP_URL = "https://.anonymousoverflow.4o1x5.dev";
|
|
# TODO add JTW_SIGNING_KEY to work
|
|
};
|
|
};
|
|
};
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
|
|
"anonymousoverflow.${config.networking.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = " http://127.0.0.1:7344";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|