2020-11-27 20:56:20 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-02-21 11:45:45 +00:00
|
|
|
hexchen.dns.zones."4future.dev".subdomains.waszumfff.CNAME = [ "hainich.hacc.space." ];
|
|
|
|
|
2020-11-27 20:56:20 +00:00
|
|
|
virtualisation.oci-containers.containers."ghost-waszumfff" = {
|
|
|
|
autoStart = true;
|
|
|
|
environment = {
|
|
|
|
url = "https://waszumfff.4future.dev";
|
|
|
|
};
|
|
|
|
image = "ghost:alpine";
|
|
|
|
ports = [ "127.0.0.1:2368:2368" ];
|
|
|
|
volumes = [ "/run/florinori:/var/lib/ghost/content" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/run/florinori" =
|
|
|
|
{ device = "dpool/k8s/florinori";
|
|
|
|
fsType = "zfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."waszumfff.4future.dev" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:2368";
|
|
|
|
extraConfig = "
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
|
|
";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|