나의 재물운? 연애운은?
AI가 봐주는 내 사주팔자 - 운세박사
gunicorn - http 요청 처리 : 8000
daphne - 소켓 관리 프로세스 : 5000 (레디스)
샐러리 - 파이썬 프로세스. 장고에서 긴 로직을 수행해야할 때 worker를 살려두기 위해서 씀. 장고가 계속 돌 수 있도록.
샐러리와 다프네가 레디스를 사용함
크론 스케줄러
구니콘 - 3
다프네 - 1
샐러리 - 1
레디스 - RAM DB 관리 솔루션
크론 - 스케줄러
.platform/nginx/conf.d/elasticbeanstalk/django.conf
location /ws {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
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-Host $server_name;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_http_version 1.1;
}
나의 재물운? 연애운은?
AI가 봐주는 내 사주팔자 - 운세박사