Skip to content

Commit

Permalink
feat(adm): implement auth and audit logger
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Nov 17, 2024
1 parent 15b7521 commit 1ec669f
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 58 deletions.
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ELASTICSEARCH_URL=http://localhost:62222
PORT=5000
ADM_PORT=5500

# For Admin API, we use Cloudflare Access to protect it
CLOUDFLARE_ACCESS_TEAM_DOMAIN=https://cofacts.cloudflareaccess.com

# Rollbar setup
ROLLBAR_TOKEN=YOUR_ROLLBAR_TOKEN
ROLLBAR_ENV=localhost
Expand Down
3 changes: 3 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
{
name: 'rumors-admin-api',
script: 'build/adm/index.js',
env_production: {
NODE_ENV: 'production',
},
instances: 1,
exec_mode: 'cluster',
out_file: '/dev/null',
Expand Down
Loading

0 comments on commit 1ec669f

Please sign in to comment.