mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
21 lines
573 B
Nix
21 lines
573 B
Nix
{ config, ... }:
|
|
{
|
|
services = {
|
|
anubis.instances.binternet = {
|
|
settings = {
|
|
TARGET = "http://localhost:8081";
|
|
BIND = ":8082";
|
|
BIND_NETWORK = "tcp";
|
|
};
|
|
};
|
|
nginx.virtualHosts."curate.liv.town" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
|
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
|
locations."/" = {
|
|
proxyPass = "http://localhost${toString config.services.anubis.instances.binternet.settings.BIND}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
}
|