26 lines
573 B
JavaScript
26 lines
573 B
JavaScript
// Load environment variables from .env (production secrets)
|
|
try {
|
|
// eslint-disable-next-line global-require
|
|
require('dotenv').config({ path: '/var/www/harheimertc/.env' })
|
|
} catch (_e) {
|
|
// ignore
|
|
}
|
|
|
|
module.exports = {
|
|
apps: [{
|
|
name: 'harheimertc',
|
|
script: 'node',
|
|
args: '.output/server/index.mjs',
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '1G',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3100,
|
|
ENCRYPTION_KEY: process.env.ENCRYPTION_KEY,
|
|
JWT_SECRET: process.env.JWT_SECRET
|
|
}
|
|
}]
|
|
}
|