mirror of
https://github.com/jeffcaldwellca/mkcertWeb.git
synced 2026-04-26 08:28:12 -05:00
session control changes
This commit is contained in:
@@ -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
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user