Skip to content

Commit

Permalink
chore : nginx worker 설정 파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mclub4 committed May 23, 2024
1 parent 1849982 commit 5ffb071
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions back/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
FROM nginx

#COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf.template /etc/nginx/conf.d/default.conf.template

ENTRYPOINT ["/bin/bash", "-c", "envsubst '${SERVER_NAME}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"]
25 changes: 25 additions & 0 deletions back/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
user nginx;
worker_processes auto;

worker_rlimit_nofile 8192;

events {
worker_connections 4096;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;

keepalive_timeout 65;

include /etc/nginx/conf.d/*.conf;
}

0 comments on commit 5ffb071

Please sign in to comment.