Orion
Configuration parameters
You can specify configurations by editing the config.sh
file.
Variable name | Description | Default value |
---|---|---|
ORION | A sub-domain name of Orion. | orion |
ORION_EXPOSE_PORT | Expose port 1026. (none, local, all) | none |
ORION_CORS | Enable cross-origin resource sharing (CORS) | false |
ORION_ACCESS_CONTROL_ALLOW_ORIGIN | Set Access-Control-Allow-Origin header for CORS | '*' |
ORION_ACCESS_CONTROL_ALLOW_METHODS | Set Access-Control-Allow-Methods header for CORS | 'GET, POST, OPTIONS, DELETE, PUT, PATCH' |
ORION_ACCESS_CONTROL_ALLOW_HEADERS | Set Access-Control-Allow-Headers header for CORS | 'Origin, Content-Type, Accept, Authorization, X-Requested-With, fiware-service, fiware-servicepath' |
ORION_CONTROL_EXPOSE_HEADERS | Set Access-Control-Expose-Headers header for CORS | 'location, fiware-correlator' |
ORION_ACCESS_CONTROL_MAX_AGE | Set Access-Control-Max-Age header for CORS | 7200 |
How to setup
To set up Orion, configure an environment variable in config.sh.
Set a sub-domain name for Orion to ORION=
as shown:
ORION=orion