-
Notifications
You must be signed in to change notification settings - Fork 0
Nginx
jaeseok.an edited this page May 4, 2020
·
2 revisions
NGINX를 Frontend에 설정한다.
-
config 파일 위치
- nginx.conf - /usr/local/nginx/conf, /etc/nginx, or /usr/local/etc/nginx
-
docker로 띄운다.
docker run --name everjs-nginx -v $NGINX_DIR/nginx.conf:/etc/nginx/nginx.conf:ro -v $NGINX_DIR/html:/usr/share/nginx/html:ro -d -p 80:80 nginx
-
config 파일은 nginx container에서 가져온다.
- /etc/nginx/nginx.conf를 가져와 수정한다.
-
nonroot user로 실행하기
pid /tmp/nginx.pid; http { client_body_temp_path /tmp/client_temp; proxy_temp_path /tmp/proxy_temp_path; fastcgi_temp_path /tmp/fastcgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; ...
export PYTHONUNBUFFERED=1
export AEM_HOME=/Users/everjs/work/python/aergo-enterprise-manager-backend
export LC_ALL=en_US.UTF-8
export PYTHONPATH=$AEM_HOME:$AEM_HOME/src:
gunicorn -b 127.0.0.1:4000 aem:aem_app
test