From add12ee738a5935098ecf36abfc690abdec13971 Mon Sep 17 00:00:00 2001 From: Johannes Hendrik Gerard van der Weide Date: Wed, 6 Mar 2024 15:25:02 +0100 Subject: [PATCH] aaaa --- services/iceshrimp.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/iceshrimp.nix b/services/iceshrimp.nix index 7a57750..5aaece1 100644 --- a/services/iceshrimp.nix +++ b/services/iceshrimp.nix @@ -3,7 +3,7 @@ iceshrimp = { enable = true; # Actually enable the module createDb = true; - configureNginx.enable = true; + configureNginx.enable = false; stateDir = "/var/lib/iceshrimp"; mediaDir = "/var/lib/iceshrimp/files"; settings = { @@ -12,5 +12,19 @@ maxCaptionLength = 5000; # We did it HermitCollective!! We solved accesibility! }; }; + nginx.virtualHosts."mastodon.hermitcollective.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://localhost:3000"; + 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;" + ; + }; + }; }; }