-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.env.sample
66 lines (45 loc) · 2.28 KB
/
.env.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# CORS allowed host, optional with default value "*"
ALLOWED_HOST=*
# Base URL for API documentation access, optional
API_DOC_URL=/interface/api-doc
# Required node environment (e.g., development, production)
APPLICATION_ENV=development
# Required application port number for running the server
APPLICATION_PORT=3567
# Required base URL for the mentoring service
MENTORING_SERVICE_BASE_URL=http://localhost:7101
# Required base URL for the notification service
NOTIFICATION_SERVICE_BASE_URL=http://localhost:7201
# Global flag to enable rate limiting, required
RATE_LIMITER_ENABLED=true
# Required limit for general type rate limiting
RATE_LIMITER_GENERAL_LIMIT=50
# Required window duration for general type rate limiting (milliseconds)
RATE_LIMITER_GENERAL_WINDOW=60000
# Required limit for internal type rate limiting
RATE_LIMITER_INTERNAL_LIMIT=50
# Required window duration for internal type rate limiting (milliseconds)
RATE_LIMITER_INTERNAL_WINDOW=60000
# Required number of proxies to consider for rate limiting
RATE_LIMITER_NUMBER_OF_PROXIES=3
# Required limit for public-low type rate limiting
RATE_LIMITER_PUBLIC_LOW_LIMIT=5
# Required window duration for public-low type rate limiting (milliseconds)
RATE_LIMITER_PUBLIC_LOW_WINDOW=120000
# Required packages for the application
# Required base URL for the scheduler service
SCHEDULER_SERVICE_BASE_URL=http://localhost:7401
# Required supported HTTP types for the server
SUPPORTED_HTTP_TYPES="GET POST PUT PATCH DELETE"
# Required base URL for the user service
USER_SERVICE_BASE_URL=http://localhost:7001
# Add all the base package names required
REQUIRED_BASE_PACKAGES="user,mentoring,notification,scheduler,project,entity-management,self-creation-portal,survey"
# Write all the routes coma separated
# updated config url project + branch + path
# change the host url from "https://github.com" to "https://raw.githubusercontent.com"
# Provide path in server where the config file is
ROUTE_CONFIG_JSON_URLS_PATHS="https://raw.githubusercontent.com/ELEVATE-Project/survey-project-creation-service/scp-route-source/src/constants/interface-routes/configs.json,/opt/backend/deployment/user/src/constants/interface-routes/configs.json"
#debug mode
DEBUG_MODE = true/false