mirror of
https://github.com/PowerDNS-Admin/PowerDNS-Admin.git
synced 2026-04-25 00:35:52 +03:00
[GH-ISSUE #116] Support uWSGI #73
Labels
No labels
bug / broken-feature
bug / broken-feature
docs / request
feature / request
help / other
mod / help-wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PowerDNS-Admin-PowerDNS-Admin#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pschiffe on GitHub (Aug 19, 2016).
Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/116
In production deployments, python web server is usually not facing users. For performance and stability reasons, there is usually an nginx proxy with uWSGI in front of a python app.
Couple of useful links:
https://www.digitalocean.com/community/tutorials/how-to-deploy-python-wsgi-applications-using-uwsgi-web-server-with-nginx
http://flask.pocoo.org/docs/0.11/deploying/uwsgi/
@joachimtingvold commented on GitHub (Aug 19, 2016):
Not sure what this "issue" is for? *WSGI is already supported -- you just have to make the Apache/nginx-configuration yourself (which is a standard WSGI-setup).
Should probably be some examples/instructions/documentation, but the support itself is already there.
@joachimtingvold commented on GitHub (Aug 19, 2016):
Example setup with Apache 2.4 with mod_wsgi;
Content of
/srv/vhosts/superawesomedns.foo.bar/powerdnsadmin.wsgi;(this implies that the pdnsadmin user/group exists, and that you have mod_wsgi loaded)
@pschiffe commented on GitHub (Aug 19, 2016):
Great. I wasn't sure because there was no info/doc about it. Thanks for the examples. Feel free to close this, or use it for documentation update PR.
@joachimtingvold commented on GitHub (Aug 19, 2016):
I don't have much WSGI-experience, so there are no guarantees that the above examples can be classified as "best practice" (-:
But yeah, an example of nginx should probably also be added together with the above, and put into the documentation for future reference.
@pschiffe commented on GitHub (Aug 19, 2016):
Ah, there is a wiki..
https://github.com/ngoduykhanh/PowerDNS-Admin/wiki/uWSGI-example