1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Initial site commit

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-02-20 14:38:25 -08:00
parent 0a6bdb2544
commit 1c45fdaf33
136 changed files with 24538 additions and 146 deletions

23
server.js Normal file
View File

@@ -0,0 +1,23 @@
const express = require('express');
const morgan = require('morgan');
const directory = require('serve-index');
const log = require('fancy-log');
var app = express();
app.disable('etag');
app.use(morgan('dev'));
app.use((req, res, next) => {
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
req.headers['if-none-match'] = 'no-match-for-this';
next();
});
app.use(express.static('dist', { etag: false, maxAge: 5 }));
app.use(directory('dist', { 'icons': true }));
app.get('/i', (req, res) => res.send(''));
app.listen(process.env.PORT || 8000, () => log('Listening on http://127.0.0.1:8000'));