This software acts as entrypoint of the VPL ++ microservices ecosystem. This microservice if for docker clusters.
docker-compose up gateway
The way to configure the gateway is by environment variables.
Variables
- SERVER_PORT: server's port if this value is 443, runs with ssl
- CERT: path to certificate
- CERT_KEY: path to key
- SERVER_NAME: server's name
- JAIL_URL: internal url to the jail microservice
- JAIL_PATH: external path to reach the jail microservice for example www.myDomain.com/jail
- CLIENT_URL: internal url to the client microservice
- CLIENT_PATH: external path to reach the client microservice for example www.myDomain.com/client
- CLIENT_STATIC_PATH: external path to serve the static files of the client for example www.myDomain.com/vplclient_static
- API_URL: internal url to the api microservice
- API_PATH: external path to reach the api microservice for example www.myDomain.com/api
- MOODLE_URL: internal url to the jail microservice
- MOODLE_PATH: external path to reach the jail microservice for example www.myDomain.com/moodle
Example
SERVER_PORT: 80
CERT: /etc/cert
CERT_KEY: /etc/key
SERVER_NAME: localhost
JAIL_URL: http://jailrunner
JAIL_PATH: /jail
CLIENT_URL: http://client
CLIENT_PATH: /client
CLIENT_STATIC_PATH: /vplclient_static
API_URL: http://api:1337
API_PATH: /apis
MOODLE_URL: http://moodle
MOODLE_PATH: /