From 630eb36c006efd6b47cf5f4aa8f65aa7fc212b3c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 4 Apr 2023 03:14:17 +0200 Subject: Add fosscord matrix and old staging --- host/Spacebar-nginx/configuration.nix | 6 +++++- host/Spacebar-nginx/hosts/fosscord.com/matrix.nix | 14 ++++++++++++++ host/Spacebar-nginx/hosts/spacebar.chat/server/old.nix | 14 ++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 host/Spacebar-nginx/hosts/fosscord.com/matrix.nix create mode 100755 host/Spacebar-nginx/hosts/spacebar.chat/server/old.nix diff --git a/host/Spacebar-nginx/configuration.nix b/host/Spacebar-nginx/configuration.nix index cd412ef..f02fc3e 100755 --- a/host/Spacebar-nginx/configuration.nix +++ b/host/Spacebar-nginx/configuration.nix @@ -25,11 +25,15 @@ recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts = { + # legacy "matrix.thearcanebrony.net" = import ./hosts/thearcanebrony.net/matrix.nix; + "matrix.fosscord.com" = import ./hosts/fosscord.com/matrix.nix; + # production "mail.spacebar.chat" = import ./hosts/spacebar.chat/mail.nix; + "old.server.spacebar.chat" = import ./hosts/spacebar.chat/server/old.nix; - #local only + # local only "secrets.spacebar.local" = import ./hosts/spacebar.local/secrets.nix { inherit lib config; }; }; }; diff --git a/host/Spacebar-nginx/hosts/fosscord.com/matrix.nix b/host/Spacebar-nginx/hosts/fosscord.com/matrix.nix new file mode 100755 index 0000000..d2b7606 --- /dev/null +++ b/host/Spacebar-nginx/hosts/fosscord.com/matrix.nix @@ -0,0 +1,14 @@ +{ + enableACME = true; + addSSL = true; + locations = { + "/" = { + proxyPass = "http://192.168.1.200:8008"; + proxyWebsockets = true; + extraConfig = + "proxy_ssl_server_name on;" + + "proxy_pass_header Authorization;" + ; + }; + }; +} diff --git a/host/Spacebar-nginx/hosts/spacebar.chat/server/old.nix b/host/Spacebar-nginx/hosts/spacebar.chat/server/old.nix new file mode 100755 index 0000000..8b7df6d --- /dev/null +++ b/host/Spacebar-nginx/hosts/spacebar.chat/server/old.nix @@ -0,0 +1,14 @@ +{ + enableACME = true; + forceSSL = true; + locations = { + "/" = { + proxyPass = "http://192.168.1.200:3001"; + proxyWebsockets = true; + extraConfig = + "proxy_ssl_server_name on;" + + "proxy_pass_header Authorization;" + ; + }; + }; +} -- cgit 1.4.1