commit b76e41695f1cb3e02c19429062fbb79eff9273c5 parent 84aae5d4f69ea336fc69ecdc760a0750b66428b4 Author: Vincent Demeester <vincent@sbr.pm> Date: Fri, 15 Apr 2022 14:14:07 +0200 systems: proxyify the webhook Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | systems/hosts/kerkouane.nix | | | 11 | +++++++++++ |
M | systems/hosts/wakasu.nix | | | 12 | ++++++++++-- |
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/systems/hosts/kerkouane.nix b/systems/hosts/kerkouane.nix @@ -189,6 +189,17 @@ in ''; }; }; + virtualHosts."webhook.sbr.pm" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://10.100.0.8:80"; + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + ''; + }; + }; virtualHosts."sbr.pm" = { enableACME = true; forceSSL = true; diff --git a/systems/hosts/wakasu.nix b/systems/hosts/wakasu.nix @@ -100,8 +100,6 @@ in recommendedTlsSettings = true; recommendedOptimisation = true; virtualHosts."whoami.sbr.pm" = { - enableACME = true; - forceSSL = true; locations."/" = { proxyPass = "http://192.168.1.187:80"; extraConfig = '' @@ -110,6 +108,16 @@ in ''; }; }; + virtualHosts."webhook.sbr.pm" = { + # listen = [{ port = 8080; }]; + locations."/" = { + proxyPass = "http://192.168.1.188:8080"; + extraConfig = '' + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + ''; + }; + }; }; };