I forgot I was using NGINX
This commit is contained in:
parent
b66d6e696f
commit
f11d05e648
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -33,6 +33,8 @@ rawDB.exec(`CREATE TABLE IF NOT EXISTS blacklist( 'domain' TEXT );`);
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
|
||||||
|
app.set('trust proxy', true);
|
||||||
app.set('view engine', 'ejs');
|
app.set('view engine', 'ejs');
|
||||||
app.use('/assets', express.static('assets'));
|
app.use('/assets', express.static('assets'));
|
||||||
app.set('views', path.join(__dirname, "views", "pages"));
|
app.set('views', path.join(__dirname, "views", "pages"));
|
||||||
|
|
Loading…
Reference in a new issue