kopia lustrzana https://github.com/piku/piku
1.9 KiB
1.9 KiB
Configuring Piku via ENV
You can configure deployment settings by placing special variables in an ENV file deployed with your app.
Runtime Settings
AUTO_RESTART: Piku will restart all workers every time the app is deployed.
Python
PYTHON_VERSION(int): Forces Python 3
Node
NODE_VERSION: installs a particular version of node for your app ifnodeenvis found on the path.
Note: you will need to stop and re-deploy the app to change the node version in a running app.
Network Settings
BIND_ADDRESS: IP address to which your app will bind (typically127.0.0.1)PORT: TCP port for your app to listen in (if deploying your own web listener).
uWSGI Settings
UWSGI_MAX_REQUESTS(integer): set themax-requestsoption to determine how many requests a worker will receive before it's recycled.UWSGI_LISTEN(integer): set thelistenqueue size.UWSGI_PROCESSES(integer): set theprocessescount.UWSGI_ENABLE_THREADS(boolean): set theenable-threadsoption.UWSGI_LOG_MAXSIZE(integer): set thelog-maxsize.UWSGI_LOG_X_FORWARDED_FOR(boolean): set thelog-x-forwarded-foroption.UWSGI_GEVENT: enable the Python 2geventpluginUWSGI_ASYNCIO: enable the Python 2/3asynciopluginUWSGI_INCLUDE_FILE: a uwsgi config file in the app's dir to include - useful for including custom uwsgi directives.
Nginx Settings
NGINX_SERVER_NAME: set the virtual host name associated with your appNGINX_CLOUDFLARE_ACL(boolean): activate an ACL allowing access only from Cloudflare IPsNGINX_STATIC_PATHS: set an array of/url:pathvaluesNGINX_HTTPS_ONLY: tell nginx to auto-redirect non-SSL traffic to SSL siteNGINX_INCLUDE_FILE: a file in the app's dir to include in nginx configserversection - useful for including custom nginx directives.NGINX_ALLOW_GIT_FOLDERS: (boolean) allow access to.gitfolders (default: false, blocked)