From c86ab83579c2123dbde0d975ddb940c3ab39bf4f Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 7 Nov 2024 11:20:23 +0000 Subject: [PATCH] Consolidate Alex's domains and add epic-toolbars.download --- services/akkoma-media.nix | 17 ------- services/akkoma.nix | 17 ------- services/alex.nix | 97 +++++++++++++++++++++++++++++++++++++++ services/default.nix | 4 +- services/matrix.nix | 17 ------- 5 files changed, 98 insertions(+), 54 deletions(-) delete mode 100644 services/akkoma-media.nix delete mode 100644 services/akkoma.nix create mode 100644 services/alex.nix delete mode 100644 services/matrix.nix diff --git a/services/akkoma-media.nix b/services/akkoma-media.nix deleted file mode 100644 index b97688c..0000000 --- a/services/akkoma-media.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - # Reqeusts SSL and adds the site to nginx - services.nginx.virtualHosts."media.nederland.gay" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://192.168.178.243/"; - proxyWebsockets = true; # needed if you need to use WebSocket - extraConfig = - # required when the target is also TLS server with multiple hosts - "proxy_ssl_server_name on;" + - # required when the server wants to use HTTP Authentication - "proxy_pass_header Authorization;" - ; - }; - }; -} diff --git a/services/akkoma.nix b/services/akkoma.nix deleted file mode 100644 index 777a43d..0000000 --- a/services/akkoma.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - # Reqeusts SSL and adds the site to nginx - services.nginx.virtualHosts."nederland.gay" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://192.168.178.243/"; - proxyWebsockets = true; # needed if you need to use WebSocket - extraConfig = - # required when the target is also TLS server with multiple hosts - "proxy_ssl_server_name on;" + - # required when the server wants to use HTTP Authentication - "proxy_pass_header Authorization;" - ; - }; - }; -} diff --git a/services/alex.nix b/services/alex.nix new file mode 100644 index 0000000..b644a81 --- /dev/null +++ b/services/alex.nix @@ -0,0 +1,97 @@ +{ + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."nederland.gay" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; + + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."media.nederland.gay" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; + + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."matrix.nederland.gay" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; + + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."cool.epic-toolbars.download" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; + + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."free.epic-toolbars.download" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; + + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."noscam.free.epic-toolbars.download" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.243"; + proxyWebsockets = true; # needed if you need to use WebSocket + extraConfig = + # required when the target is also TLS server with multiple hosts + "proxy_ssl_server_name on;" + + # required when the server wants to use HTTP Authentication + "proxy_pass_header Authorization;" + ; + }; + }; +} diff --git a/services/default.nix b/services/default.nix index b89c18c..b43a0b1 100644 --- a/services/default.nix +++ b/services/default.nix @@ -7,9 +7,7 @@ ./owncast.nix ./uptime-kuma.nix ./iceshrimp.nix - ./akkoma.nix - ./akkoma-media.nix - ./matrix.nix + ./alex.nix ./trackmap.nix ]; } diff --git a/services/matrix.nix b/services/matrix.nix deleted file mode 100644 index 5bcaead..0000000 --- a/services/matrix.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - # Reqeusts SSL and adds the site to nginx - services.nginx.virtualHosts."matrix.nederland.gay" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://192.168.178.243"; - proxyWebsockets = true; # needed if you need to use WebSocket - extraConfig = - # required when the target is also TLS server with multiple hosts - "proxy_ssl_server_name on;" + - # required when the server wants to use HTTP Authentication - "proxy_pass_header Authorization;" - ; - }; - }; -}