add nginx.conf for customlog
This commit is contained in:
parent
79816ac6fd
commit
a7a494508a
@ -3,5 +3,6 @@ FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/nginx
|
|||||||
COPY privkey.pem /etc/nginx/
|
COPY privkey.pem /etc/nginx/
|
||||||
COPY fullchain.pem /etc/nginx/
|
COPY fullchain.pem /etc/nginx/
|
||||||
COPY default.conf /etc/nginx/conf.d/
|
COPY default.conf /etc/nginx/conf.d/
|
||||||
|
COPY nginx.conf /etc/nginx/
|
||||||
COPY index.html /usr/share/nginx/html/404/
|
COPY index.html /usr/share/nginx/html/404/
|
||||||
COPY robots.txt /usr/share/nginx/html/robots.txt
|
COPY robots.txt /usr/share/nginx/html/robots.txt
|
||||||
|
31
nginx.conf
Normal file
31
nginx.conf
Normal file
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user