Last active
March 22, 2021 11:27
-
-
Save yuswitayudi/d045c5b28d713b8690668de465ce8c39 to your computer and use it in GitHub Desktop.
Example config uwsgi python with nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwsgi -s :3017 --module run --callable app --enable-threads --processes 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uwsgi --socket 127.0.0.1:3380 --protocol=http -w named_of_file(wihtout .py):app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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