-
-
Save vchrombie/2406bbefc4926b7550fbad46a2c43cfa to your computer and use it in GitHub Desktop.
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
[ | |
{ | |
"AllowedHeaders": [ | |
"*" | |
], | |
"AllowedMethods": [ | |
"HEAD", | |
"GET", | |
"PUT", | |
"POST", | |
"DELETE" | |
], | |
"AllowedOrigins": [ | |
"*" | |
], | |
"ExposeHeaders": [] | |
} | |
] |
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
[program:gunicorn] | |
directory=/home/ubuntu/myblog | |
command=/home/ubuntu/env/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/myblog/app.sock myblog.wsgi:application | |
autostart=true | |
autorestart=true | |
stderr_logfile=/var/log/gunicorn/gunicorn.err.log | |
stdout_logfile=/var/log/gunicorn/gunicorn.out.log | |
[group:guni] | |
programs:gunicorn |
vineelareddy0410
commented
Jul 19, 2024
server {
listen 80;
server_name ec2-18-224-25-219.us-east-2.compute.amazonaws.com;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/ubuntu/todo;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment