mirror of
				https://github.com/9technologygroup/patchmon.net.git
				synced 2025-11-04 05:53:27 +00:00 
			
		
		
		
	Created default user role modified server.js to check if roles of admin/user is present modified server.js to check dashboard cards set up default dashboard cards to show
		
			
				
	
	
		
			26 lines
		
	
	
		
			528 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			528 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# Database Configuration
 | 
						|
DATABASE_URL="postgresql://patchmon_user:p@tchm0n_p@55@localhost:5432/patchmon_db"
 | 
						|
 | 
						|
# Server Configuration
 | 
						|
PORT=3001
 | 
						|
NODE_ENV=development
 | 
						|
 | 
						|
# API Configuration
 | 
						|
API_VERSION=v1
 | 
						|
CORS_ORIGIN=http://localhost:3000
 | 
						|
 | 
						|
# Rate Limiting (times in milliseconds)
 | 
						|
RATE_LIMIT_WINDOW_MS=900000
 | 
						|
RATE_LIMIT_MAX=5000
 | 
						|
AUTH_RATE_LIMIT_WINDOW_MS=600000
 | 
						|
AUTH_RATE_LIMIT_MAX=500
 | 
						|
AGENT_RATE_LIMIT_WINDOW_MS=60000
 | 
						|
AGENT_RATE_LIMIT_MAX=1000
 | 
						|
 | 
						|
# Logging
 | 
						|
LOG_LEVEL=info
 | 
						|
ENABLE_LOGGING=true
 | 
						|
 | 
						|
# User Registration
 | 
						|
DEFAULT_USER_ROLE=user
 |