Skip to content

rubenmromero/nginx-uwsgi-python

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

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