diff --git a/Dockerfile b/Dockerfile index 548ba59..f7a213e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,6 @@ FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx COPY privkey.pem /etc/nginx/ COPY fullchain.pem /etc/nginx/ COPY default.conf /etc/nginx/conf.d/ +COPY nginx.conf /etc/nginx/ COPY index.html /usr/share/nginx/html/404/ COPY robots.txt /usr/share/nginx/html/robots.txt diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..cbf15a8 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,31 @@ +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +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" "$request_time"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; +}