Skip to content

Configuration example to execute Python scripts via CGI through Nginx and uWSGI application server

License

Notifications You must be signed in to change notification settings

rubenmromero/nginx-uwsgi-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx-uWSGI-Python

Configuration example to execute Python scripts via CGI through Nginx and uWSGI application server.

Minimum uWSGI Stack

Execution model:

http[s]://<dns_prefix>.<domain>/<python_script>    ---->    Nginx (reverse proxy)    ---->    uWSGI (CGI)

Description of included files

  • /nginx/XX-dns_prefix.conf => Nginx VHost template
  • /python_scripts/deploy.py => Example Python script to execute
  • /python_scripts/uwsgi => uWSGI binary compiled through curl http://uwsgi.it/install | bash -s cgi <abs_path_to_python_scripts_dir>/uwsgi command
  • /python_scripts/uwsgi.ini=> uWSGI configuration file
  • /systemd/uwsgi.service => Systemd service file for the uWSGI instance responsible for executing the Python scripts

Related Links

About

Configuration example to execute Python scripts via CGI through Nginx and uWSGI application server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages