Reimplement http -> https redirects. Remove request phases. With just a little extra storage, it wasn't needed.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4723 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-02 15:02:47 +00:00
parent d7c0ffaac4
commit 9ef909c9a1
4 changed files with 93 additions and 8 deletions

View File

@ -951,6 +951,9 @@ function stringResponse(response, data) {
}
loadSettings().then(function() {
if (tildefriends.https_port && gGlobalSettings.http_redirect) {
httpd.set_http_redirect(gGlobalSettings.http_redirect);
}
httpd.all("/login", auth.handler);
httpd.registerSocketHandler("/app/socket", app.socket);
httpd.all("", function(request, response) {