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
| upstream app_server { | |
| server 127.0.0.1:9000 fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name <server name>; | |
| return 301 https://$server_name$request_uri; | |
| } |
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
| #!/bin/bash | |
| # This runs on 9000 port | |
| NAME="appname" | |
| VIRTUALENV="virtualenv folder" | |
| DJANGO_DIR="django root folder" | |
| USER=root | |
| GROUP=sudo | |
| NUM_WORKERS=5 |
NewerOlder