nginx: forceSSL for git and fedi

This commit is contained in:
2022-11-08 13:28:41 +00:00
parent 6b7a544df3
commit 205b6a9afb

View File

@@ -97,7 +97,7 @@ in
# Pleroma server and web interface # Pleroma server and web interface
services.nginx.virtualHosts."fed.uninsane.org" = publog { services.nginx.virtualHosts."fed.uninsane.org" = publog {
addSSL = true; forceSSL = true; # pleroma redirects to https anyway
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:4000"; proxyPass = "http://127.0.0.1:4000";
@@ -199,7 +199,7 @@ in
# hosted git (web view and for `git <cmd>` use # hosted git (web view and for `git <cmd>` use
services.nginx.virtualHosts."git.uninsane.org" = publog { services.nginx.virtualHosts."git.uninsane.org" = publog {
addSSL = true; forceSSL = true; # gitea complains if served over a different protocol than its config file says
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {