module.exports = {
    port: 3000,
    internalClientPort: 3001,
    authKey: 'ASDASD'
};

const fs = require('fs');

module.exports = {
    port: 3000,
    internalClientPort: 3001,
    authKey: process.env.AUTH_KEY || fs.readFileSync('/run/secrets/authkey', { encoding: 'utf-8' }).trim()
};

Make server auth key configurable
Make server auth key configurable

Can be provided with an env var or with a Docker secret named "authkey".
