diff --git a/services/default.nix b/services/default.nix index 59263b0..633e196 100644 --- a/services/default.nix +++ b/services/default.nix @@ -6,5 +6,6 @@ ./nextcloud.nix ./owncast.nix ./uptime-kuma.nix + ./iceshrimp.nix ]; } diff --git a/services/iceshrimp.nix b/services/iceshrimp.nix new file mode 100644 index 0000000..d77f16b --- /dev/null +++ b/services/iceshrimp.nix @@ -0,0 +1,17 @@ +{ + # Reqeusts SSL and adds the site to nginx + services.nginx.virtualHosts."mastodon.hermitcollective.net" = { + forceSSL = true; + enableACME = true; + locations."/" = { + proxyPass = "http://192.168.178.135: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;" + ; + }; + }; +} diff --git a/services/nginx.nix b/services/nginx.nix index 894f8a5..ba894e1 100644 --- a/services/nginx.nix +++ b/services/nginx.nix @@ -6,6 +6,7 @@ recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; + clientMaxBodySize = "50m"; }; }