mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 17:17:59 +00:00
yea qwq
This commit is contained in:
parent
58a8cd714b
commit
f47e0aef2d
@ -115,7 +115,7 @@ this is our config file,you can change stuff here
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.use(function (request, response, next) {
|
app.use(function (request, response, next) {
|
||||||
if (config.enablealwayshttps == true) {
|
if (config.enablealwayshttps) {
|
||||||
if (process.env.NODE_ENV != "development" && !request.secure) {
|
if (process.env.NODE_ENV != "development" && !request.secure) {
|
||||||
return response.redirect(
|
return response.redirect(
|
||||||
"https://" + request.headers.host + request.url
|
"https://" + request.headers.host + request.url
|
||||||
|
Loading…
Reference in New Issue
Block a user