OKA Gunicorn server
Location
During installation or update, OKA provides a default configuration in:
${OKA_INSTALL_DIR}/versions/X.Y.Z/config/oka/gunicorn.conf.py
If you want to customize the configuration, you can copy this file to:
${OKA_INSTALL_DIR}/config/oka/gunicorn.conf.py
Important
During an update, the user’s customized file will not be modified. If a change in the default requires an update to the user modified file, this will be mentioned in the release notes.
Important
At runtime, OKA always prioritizes the user’s version (in ${OKA_INSTALL_DIR}/config/oka/gunicorn.conf.py) before falling back to the default version provided in the current release.
OKA server
Here are parameters that can be configured regarding the server.
bind:0.0.0.0:8000Specify on which IP and port the server must listen. Use
0.0.0.0if you want the server to listen on all interfaces. If you are serving OKA behind a proxy running on the same server, you might want to use127.0.0.1:8000instead (or theIP:portof the proxy server) to only allow connections from the proxy.workers:2Define the number of thread available for the server.