session control changes

This commit is contained in:
Jeff Caldwell
2025-08-01 10:21:03 -04:00
committed by GitHub
parent 2e0e31e831
commit 019a330a22
2 changed files with 9 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
# Authentication test configuration
ENABLE_AUTH=true
AUTH_USERNAME=admin
AUTH_PASSWORD=admin
SESSION_SECRET=test-secret-key-for-development
# Server Configuration
PORT=3000
ENABLE_HTTPS=false
-5
View File
@@ -1138,11 +1138,6 @@ app.delete('/api/certificates/:certname', requireAuth, async (req, res) => {
}
});
// Serve the main page
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
});
// Error handling middleware
app.use((err, req, res, next) => {
console.error(err.stack);