Add mobile dashboard, allow longer auth sessions
This commit is contained in:
@@ -39,6 +39,11 @@ logger.info({
|
||||
const app = express();
|
||||
const port = Number(process.env.AUTH_PORT) || 3011;
|
||||
|
||||
// Behind Caddy on localhost: without this, req.ip is ::1 for every request and
|
||||
// the rate limiters put ALL users in one shared bucket (10 logins/15min for
|
||||
// the whole office). Same setting as inventory-server's server.js.
|
||||
app.set('trust proxy', 'loopback');
|
||||
|
||||
const pool = new Pool({
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
|
||||
Reference in New Issue
Block a user