diff --git a/host/Rory-ovh/services/nginx/fosscord.com/matrix.nix b/host/Rory-ovh/services/nginx/fosscord.com/matrix.nix
new file mode 100644
index 0000000..14ccad5
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/fosscord.com/matrix.nix
@@ -0,0 +1,14 @@
+{
+# enableACME = true;
+# addSSL = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://192.168.1.200:8009";
+ proxyWebsockets = true;
+ extraConfig =
+ "proxy_ssl_server_name on;" +
+ "proxy_pass_header Authorization;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/fosscord.com/root.nix b/host/Rory-ovh/services/nginx/fosscord.com/root.nix
new file mode 100644
index 0000000..7efa326
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/fosscord.com/root.nix
@@ -0,0 +1,16 @@
+{ lib, config }: {
+ locations = {
+ "/" = {
+ extraConfig =
+ ''
+ return 301 https://spacebar.chat$request_uri;
+ '';
+ };
+ ".well-known/matrix/server" = {
+ root = "/var/lib/matrix";
+ };
+ "^~ /.well-known/acme-challenge/" = {
+ root = "/var/lib/acme/acme-challenge";
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/grafana.nix b/host/Rory-ovh/services/nginx/spacebar.chat/grafana.nix
new file mode 100644
index 0000000..d2b7207
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/grafana.nix
@@ -0,0 +1,14 @@
+{
+ enableACME = true;
+ forceSSL = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://192.168.1.99:3000";
+ proxyWebsockets = true;
+ extraConfig =
+ "proxy_ssl_server_name on;" +
+ "proxy_pass_header Authorization;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/mail.nix b/host/Rory-ovh/services/nginx/spacebar.chat/mail.nix
new file mode 100644
index 0000000..3ca873d
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/mail.nix
@@ -0,0 +1,14 @@
+{
+ enableACME = true;
+ forceSSL = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://192.168.1.3";
+ proxyWebsockets = true;
+ extraConfig =
+ "proxy_ssl_server_name on;" +
+ "proxy_pass_header Authorization;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/server/old/api.nix b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/api.nix
new file mode 100644
index 0000000..8b7df6d
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/api.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;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/server/old/cdn.nix b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/cdn.nix
new file mode 100644
index 0000000..89958fe
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/cdn.nix
@@ -0,0 +1,14 @@
+{
+ enableACME = true;
+ forceSSL = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://192.168.1.200:3003";
+ proxyWebsockets = true;
+ extraConfig =
+ "proxy_ssl_server_name on;" +
+ "proxy_pass_header Authorization;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/server/old/gateway.nix b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/gateway.nix
new file mode 100644
index 0000000..ff95a5e
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/gateway.nix
@@ -0,0 +1,14 @@
+{
+ enableACME = true;
+ forceSSL = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://192.168.1.200:3002";
+ proxyWebsockets = true;
+ extraConfig =
+ "proxy_ssl_server_name on;" +
+ "proxy_pass_header Authorization;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/spacebar.chat/server/old/root.nix b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/root.nix
new file mode 100644
index 0000000..8b7df6d
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/spacebar.chat/server/old/root.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;"
+ ;
+ };
+ };
+}
diff --git a/host/Rory-ovh/services/nginx/thearcanebrony.net/matrix.nix b/host/Rory-ovh/services/nginx/thearcanebrony.net/matrix.nix
new file mode 100644
index 0000000..d2b7606
--- /dev/null
+++ b/host/Rory-ovh/services/nginx/thearcanebrony.net/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;"
+ ;
+ };
+ };
+}
|