mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-02-22 21:05:14 +08:00
chore: comment out anubis
This commit is contained in:
parent
2c2e1544c5
commit
7671014026
7 changed files with 69 additions and 57 deletions
|
|
@ -1,19 +1,23 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
target = "http://localhost:8081";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
anubis.instances.binternet = {
|
||||
settings = {
|
||||
TARGET = "http://localhost:8081";
|
||||
BIND = ":8082";
|
||||
BIND_NETWORK = "tcp";
|
||||
};
|
||||
};
|
||||
#anubis.instances.binternet = {
|
||||
# settings = {
|
||||
# TARGET = target;
|
||||
# BIND = "/run/anubis/anubis-binternet/anubis.sock";
|
||||
# METRICS_BIND = "/run/anubis/anubis-binternet/anubis.sock";
|
||||
# };
|
||||
#};
|
||||
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}";
|
||||
# proxyPass = "http://unix:${toString config.services.anubis.instances.binternet.settings.BIND}";
|
||||
proxyPass = target;
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue