mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 05:14:39 -05:00
my bad qwq
This commit is contained in:
parent
61d77e6a09
commit
a0676033a3
1 changed files with 2 additions and 2 deletions
|
@ -108,14 +108,14 @@ this is our config file,you can change stuff here
|
||||||
"max-age=31536000; includeSubDomains; preload"
|
"max-age=31536000; includeSubDomains; preload"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
res.header("secure-poketube-instance", "1");
|
||||||
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(function (request, response, next) {
|
app.use(function (request, response, next) {
|
||||||
if (config.enablealwayshttps == true) {
|
if (config.enablealwayshttps == true) {
|
||||||
if (process.env.NODE_ENV != "development" && !request.secure) {
|
if (process.env.NODE_ENV != "development" && !request.secure) {
|
||||||
response.header("secure-poketube-instance", "1");
|
|
||||||
|
|
||||||
return response.redirect(
|
return response.redirect(
|
||||||
"https://" + request.headers.host + request.url
|
"https://" + request.headers.host + request.url
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue