https redirect

This commit is contained in:
Philip Peterson 2024-12-20 07:13:37 -05:00
parent 4f71bf83bc
commit 5cc09ce53c
No known key found for this signature in database
GPG key ID: 354311183FC6519B

View file

@ -119,6 +119,7 @@
proxyPass = "http://127.0.0.1:3000/"; # pass through to Forgejo
};
};
"forge.quinefoundation.com-http" = {
serverName = "forge.quinefoundation.com";
@ -128,7 +129,13 @@
];
locations."/" = {
proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
# TODO: forgejo does not support HTTP+HTTPS. But it would be nice if it did.
#proxyPass = "https://forge.quinefoundation.com/"; # pass through to HTTPS
# Instead, temporarily redirect to HTTPS
extraConfig = ''
return 302 https://$host$request_uri;
'';
};
};
};