Skip to content

Instantly share code, notes, and snippets.

@yuswitayudi
Last active March 22, 2021 11:27
Show Gist options
  • Save yuswitayudi/d045c5b28d713b8690668de465ce8c39 to your computer and use it in GitHub Desktop.
Save yuswitayudi/d045c5b28d713b8690668de465ce8c39 to your computer and use it in GitHub Desktop.
Example config uwsgi python with nginx
uwsgi -s :3017 --module run --callable app --enable-threads --processes 1
uwsgi --socket 127.0.0.1:3380 --protocol=http -w named_of_file(wihtout .py):app
server {
listen 9004;
location / {
root /home/project;
include uwsgi_params;
uwsgi_modifier1 30;
uwsgi_pass 127.0.0.1:3004;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment