Name: LANGUAGE (EN/TR)
Default: EN
Desc: i18n language setting
Name: LOCATOR_SOURCE (STATIC_FILE/EUREKA/CONSUL)
Default: STATIC_FILE
Desc: source to receive routing rules
Name: LOCATOR_FILE_PATH
Default: locators.json
Desc: routing rules json path if locator source is static file
Name: FETCH_LOCATORS_SECOND
Default: 30
Desc: routing source update period as second
Name: EUREKA_URL
Default: http://localhost:8090
Desc: eureka server url if locator source is eureka
Name: EUREKA_USERNAME
Desc: eureka server username if locator source is eureka
Name: EUREKA_PASSWORD
Desc: eureka server password if locator source is eureka
Name: CONSUL_URL
Default: http://localhost:8500/v1
Desc: consul server url if locator source is consul
Name: CONSUL_USERNAME
Desc: consul server useranme if locator source is consul
Name: CONSUL_PASSWORD
Desc: consul server password if locator source is consul
Name: SECURITY_ENABLED
Default: true
Name: SECURITY_YAML_PATH
Default: security.yml
Desc: routing security rules json path if security is enable
Name: FETCH_SECURITY_SECOND
Default: 30
Desc: routing security rules update period as second
Name: TOKEN_VALIDATION_STRATEGY (grpc/rest/static)
Default: grpc
Desc: token validation service call method
Name: TOKEN_VALIDATION_SECRET_KEY
Desc: if token validation strategy is static
Name: TOKEN_VALIDATION_URL
Default: localhost:7002
Desc: token service url
Name: CURRENT_USER_ID_HEADER_KEY
Default: currentUserId
Desc: header name for will be passed user id
Name: TIME_OUT
Default: 60 (second)
Desc: validity period of the forwarded request
Name: PROFILE (DEV/TEST/PROD)
Default: DEV
Name: PORT
Default: 4000
Name: CORS_ALLOWED_METHODS
Default: POST, OPTIONS, GET, PUT, DELETE
Name: CORS_ALLOWED_HEADERS
Default: Content-Type, Accept-Language, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With, Origin
Name: CORS_ALLOW_CREDENTIALS
Default: true
Name: CORS_ALLOW_ORIGINS
Default: *
docker build -t ksgw .
(in project folder)
docker run -d -p 4000:4000 --name ksgw --link badger:badger --env-file env.list ksgw