chore: add panel.conf to protected sites and ecosystem.config.cjs
This commit is contained in:
parent
ab65271a58
commit
0f22643707
@ -16,7 +16,7 @@ ADMIN_FULL_NAME=Administrador Principal
|
||||
SESSION_SECRET=minimo_32_caracteres_aleatorios_para_cookies_o_jwt
|
||||
|
||||
# Restricciones
|
||||
PROTECTED_SITES=000-default.conf,default-ssl.conf,git.conf
|
||||
PROTECTED_SITES=000-default.conf,default-ssl.conf,git.conf,panel.conf
|
||||
RESERVED_PORTS=22,80,443,3000,3005,3306,5101,5432
|
||||
|
||||
# Modo de Operación (true para simulación local sin Apache2)
|
||||
|
||||
15
ecosystem.config.cjs
Normal file
15
ecosystem.config.cjs
Normal file
@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'a2host',
|
||||
script: './src/index.js',
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '120M',
|
||||
env_production: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3005,
|
||||
MOCK_APACHE: 'false'
|
||||
}
|
||||
}]
|
||||
};
|
||||
@ -23,7 +23,7 @@ export const config = {
|
||||
adminPass: process.env.ADMIN_PASS || 'admin123456',
|
||||
adminFullName: process.env.ADMIN_FULL_NAME || 'Administrador Principal',
|
||||
sessionSecret: process.env.SESSION_SECRET || 'a2host_super_secret_session_key_32_chars_min',
|
||||
protectedSites: (process.env.PROTECTED_SITES || '000-default.conf,default-ssl.conf,git.conf')
|
||||
protectedSites: (process.env.PROTECTED_SITES || '000-default.conf,default-ssl.conf,git.conf,panel.conf')
|
||||
.split(',')
|
||||
.map((s) => s.trim().toLowerCase())
|
||||
.filter(Boolean),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user