-
Notifications
You must be signed in to change notification settings - Fork 3
/
local.env
61 lines (47 loc) · 2.4 KB
/
local.env
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
# # Mimock app setup
# Log level to use
# Set it to DEBUG if you want to deubg any application issues
MIMOCK_LOG_LEVEL=INFO
# # To enable SSL for the server
# In a production setup, it is advised to enable this
# NOTE: If this option is disabled, then the bundled UI will be disabled to access the API
MIMOCK_KEYSTORE_ENABLE=true
# # Enable the following if 'ssl.enabled' is 'true'
# # Path to the JKS keystore file
# # Follow general instructions to create a keystore file
# # keytool -genkey -v -keystore <.jks file path> -keyalg RSA -keysize 2048 -validity 10000 -alias <alias name> -storepass <store password> -keypass <key password> -storetype jks
MIMOCK_KEYSTORE_PATH="mimock.jks"
MIMOCK_KEYSTORE_PASSWORD="ironclaw"
# The schema to use for the database
# This is a required field and if a schema is not created, it needs to be setup before starting the application
MIMOCK_DB_SCHEMA=mimock_schema_dev
# URL to access the database
MIMOCK_DB_URL=jdbc:postgresql://mimock-db:5432/mimock_db
# User created for accessing the database
MIMOCK_DB_USER=mimock
# Password for the user created for accessing the database
MIMOCK_DB_PASSWORD=ironclaw
# User session timeout duration
# Allowed values
# s - seconds | m - minutes | h - hours | d - days | w - weeks | M - months | y - years
# It accepts only whole numeric values (E.g: 210m => Valid ; 3.5h => Invalid)
# If the token is invalid, then the default timeout value will be used ( 1 Hour )
MIMOCK_JWT_EXPIRY_DURATION=1h
# Valid HmacSHA256 key generated for the application
# !! IMPORTANT !!
# REPLACE THE BELOW WITH A NEWLY GENERATED 256 BIT KEY (32 Characters)
MIMOCK_JWT_SECRET=B4982E53863B4DA7FDA4E1236C4BAF8A
# # Cors setup
# Origins to be allowed to access the application
# If the UI application wants to access mimock, then ensure the origin of the UI server is included here
MIMOCK_CORS_ORIGINS=http://localhost:3001
# Methods that should be allowed from cross origin requests
MIMOCK_CORS_METHODS=GET,POST,PUT,DELETE,OPTIONS
# Request headers that should be allowed from cross origin requests
MIMOCK_CORS_ALLOWED_HEADERS=Authorization,Content-Type,X-Requested-With,Accept,X-XSRF-TOKEN
# Response headers that are allowed to be exposed for cross origin requests
MIMOCK_CORS_EXPOSED_HEADERS=Cache-Control,Content-Language,Content-Length,Content-Type,Content-Disposition,Expires,Last-Modified,Pragma
# # Postgresql setup
POSTGRES_USER=mimock
POSTGRES_PASSWORD=ironclaw
POSTGRES_DB=mimock_db