nginx의 mysite와 mysite.services파일(검토바랍니다..)

요청하신 nginx의 mysite파일과 mysite.services파일은 다음과 같습니다.
책 그대로 복사하여 넣었습니다. 지도바랍니다.

mysite.service is as follows: [Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/projects/mysite
EnvironmentFile=/home/ubuntu/venvs/mysite.env
ExecStart=/home/ubuntu/venvs/mysite/bin/gunicorn \
--workers 2 \
--bind unix:/tmp/gunicorn.sock \
config.wsgi:application

[Install]
WantedBy=multi-user.target

server {
listen 80;
server_name 43.200.123.75;

    location = /favicon.ico { access_log off; log_not_found off; }

    location /static {
            alias /home/ubuntu/projects/mysite/static;
    }

    location / {
            include proxy_params;
            proxy_pass http://unix:/tmp/gunicorn.sock;
    }
}

hscoding 230

M 2023년 1월 26일 4:51 오후

파일이 2개인데 내용이 좀 정리가 안되어 보이네요. 공지 게시글을 보시면 마크다운으로 글을 작성하는 방법에 대한 안내가 있습니다. - 박응용님, 2023년 1월 26일 4:53 오후 추천 , 대댓글
목록으로