feat: adds anubis to $SERVICE

This commit is contained in:
Ahwx 2025-05-25 03:57:41 +02:00
parent a82653ca9d
commit 23e4113ed9
2 changed files with 18 additions and 4 deletions

View file

@ -1,12 +1,19 @@
{ ... }:
{ config, ... }:
{
services = {
anubis.instances.librey = {
settings = {
TARGET = "http://localhost:8080";
BIND = ":8079";
BIND_NETWORK = "tcp";
};
};
nginx.virtualHosts."search.liv.town" = {
forceSSL = true;
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
locations."/" = {
proxyPass = "http://localhost:8080";
proxyPass = "http://localhost${toString config.services.anubis.instances.librey.settings.BIND}";
proxyWebsockets = true;
};
};