33 lines
826 B
Nix
33 lines
826 B
Nix
{ pkgs, config, ... }: {
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
breezewiki = {
|
|
image = "quay.io/pussthecatorg/breezewiki:latest";
|
|
ports = [
|
|
"1584:10416"
|
|
];
|
|
# Todo fix since it doesnt work (required by default)
|
|
environment = {
|
|
CANONICAL_ORIGIN = "https://breezewiki.${config.networking.domain}";
|
|
canonical_origin = "https://breezewiki.${config.networking.domain}";
|
|
};
|
|
|
|
};
|
|
};
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"breezewiki.${config.networking.domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
locations."/" = {
|
|
proxyPass = " http://127.0.0.1:1584";
|
|
extraConfig = ''
|
|
access_log /var/log/nginx/$server_name-access.log json_analytics;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|