mirror of
https://github.com/caprover/caprover
synced 2026-08-25 00:46:38 +00:00
Fixed redirect issue
Run build / build (push) Waiting to run
Run formatter / check-code-formatting (push) Waiting to run
Run lint / run-lint (push) Waiting to run
Build and push the edge image / run-pre-checks (push) Waiting to run
Build and push the edge image / build-publish-docker-hub (push) Blocked by required conditions
Run build / build (push) Waiting to run
Run formatter / check-code-formatting (push) Waiting to run
Run lint / run-lint (push) Waiting to run
Build and push the edge image / run-pre-checks (push) Waiting to run
Build and push the edge image / build-publish-docker-hub (push) Blocked by required conditions
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ app.use(function (req, res, next) {
|
||||
req.secure || req.get('X-Forwarded-Proto') === 'https'
|
||||
|
||||
if (!isRequestSsl) {
|
||||
const newUrl = `https://${req.hostname}:${CaptainConstants.configs.nginxPortNumber80}${req.originalUrl}`
|
||||
const newUrl = `https://${req.hostname}:${CaptainConstants.configs.nginxPortNumber443}${req.originalUrl}`
|
||||
res.redirect(302, newUrl)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user