summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-04 03:14:17 +0200
committerRory& <root@rory.gay>2024-06-05 17:25:16 +0200
commit630eb36c006efd6b47cf5f4aa8f65aa7fc212b3c (patch)
tree706788aa86b030d13a04cd833d45abe78ce181f4
parentFix ACME (diff)
downloadSpacebar-Open-Infrastructure-630eb36c006efd6b47cf5f4aa8f65aa7fc212b3c.tar.xz
Add fosscord matrix and old staging
-rwxr-xr-xhost/Spacebar-nginx/configuration.nix6
-rwxr-xr-xhost/Spacebar-nginx/hosts/fosscord.com/matrix.nix14
-rwxr-xr-xhost/Spacebar-nginx/hosts/spacebar.chat/server/old.nix14
3 files changed, 33 insertions, 1 deletions
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;" + ; + }; + }; +}