From 0442916420c1c730281aead174202e7e09bb2c2c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 5 Apr 2023 13:37:35 +0800 Subject: [PATCH] nixbld: afws websocket proxy settings --- nixbld-etc-nixos/configuration.nix | 4 ++++ nixbld-etc-nixos/named/m-labs.hk | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 61d94448..ecc402f5 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -767,6 +767,10 @@ in ''; }; }; + "afws.m-labs.hk" = { + locations."/".proxyPass = "http://localhost:3771"; + locations."/".proxyWebsockets = true; + }; "git.m-labs.hk" = { forceSSL = true; enableACME = true; diff --git a/nixbld-etc-nixos/named/m-labs.hk b/nixbld-etc-nixos/named/m-labs.hk index ef2ed30d..9093d243 100644 --- a/nixbld-etc-nixos/named/m-labs.hk +++ b/nixbld-etc-nixos/named/m-labs.hk @@ -1,7 +1,7 @@ $TTL 7200 @ SOA NS.XN--WBTZ5WPQAJ35CFXC.XN--J6W193G. sb.m-labs.hk. ( - 2023012904 + 2023040501 7200 3600 86400 @@ -29,6 +29,7 @@ www CNAME @ nixbld CNAME @ msys2 CNAME @ conda CNAME @ +afws CNAME @ git CNAME @ chat CNAME @ hooks CNAME @