Add fosscord matrix and old staging
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;"
+ ;
+ };
+ };
+}
|