mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
fixed server start, changed game duration 20s
This commit is contained in:
@@ -20,10 +20,10 @@ export class DefaultConfig implements Config {
|
||||
return 100
|
||||
}
|
||||
gameCreationRate(): number {
|
||||
return 31.5 * 1000
|
||||
return 20 * 1000
|
||||
}
|
||||
lobbyLifetime(): number {
|
||||
return 30 * 1000
|
||||
return 20 * 1000
|
||||
}
|
||||
theme(): Theme {return vintageTheme;}
|
||||
}
|
||||
|
||||
@@ -16,14 +16,9 @@ const app = express();
|
||||
const server = http.createServer(app);
|
||||
const wss = new WebSocketServer({server});
|
||||
|
||||
app.use(express.static(path.join(__dirname, '../../resources/styles'), {
|
||||
setHeaders: (res, path, stat) => {
|
||||
if (path.endsWith('.css')) {
|
||||
res.set('Content-Type', 'text/css');
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
// Serve static files from the 'out' directory
|
||||
app.use(express.static(path.join(__dirname, '../../out')));
|
||||
app.use(express.json())
|
||||
const gm = new GameManager(getConfig())
|
||||
|
||||
// New GET endpoint to list lobbies
|
||||
|
||||
Reference in New Issue
Block a user