This commit is contained in:
Emile Nijssen
2021-05-22 22:40:11 +02:00
parent d7bb645470
commit d8f45476da
6 changed files with 104 additions and 63 deletions

View File

@@ -15,11 +15,13 @@ const {
PASSWORD,
} = require('../config');
WireGuard.getClients().then(console.log);
module.exports = class Server {
constructor() {
// Express
this.app = express()
.disable('etag')
.use('/', express.static(path.join(__dirname, '..', 'www')))
.use(express.json())
.use(expressSession({