-
|
Hi everyone, the installation tutorial only gets me as far as installing for testing purposes. How is the OEP deployed for production, say, using wsgi and a webserver such as nginx? Thanks Stephen |
Beta Was this translation helpful? Give feedback.
Answered by
wingechr
Jan 24, 2022
Replies: 1 comment 2 replies
-
|
Hi Stephen. the oep uses the python django framework. There should be a ton of tutorials how to set up django for your web server of choice. In general:
This is how I would set it up with apache2, (I am not too good with nginx): # main wsgi script
<Directory OEP_INSTALL_DIR/oeplatform>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
# static files
Alias /static/ OEP_INSTALL_DIR/static/
<Directory OEP_INSTALL_DIR/static>
Require all granted
</Directory>
# wsgi process group / virtualenv
WSGIDaemonProcess oep processes=3 threads=10 user=www-data display-name=oep python-path=OEP_INSTALL_DIR:OEP_INSTALL_DIR/.env/lib/PYTHON_VERSION/site-packages
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / OEP_INSTALL_DIR/wsgi.py process-group=oep
# pass on token header
WSGIPassAuthorization OnAdditionally, you want to configure SSL if the server is publicly visible. Hope that helps, Cheers |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pajot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Stephen.
the oep uses the python django framework. There should be a ton of tutorials how to set up django for your web server of choice.
In general:
oeplatform/wsgi.py)This is how I would set it up with apache2, (I am not too good with nginx):