Commit 453f735f authored by nanahira's avatar nanahira

logformat

parent fe13e592
Pipeline #8972 passed with stages
in 1 minute and 19 seconds
......@@ -5,8 +5,11 @@ RUN apk add --no-cache wget && \
apk add --no-cache nginx-plus nginx-plus-module-modsecurity ca-certificates && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log && \
rm -rf /etc/nginx/sites-enabled/* /etc/nginx/conf.d/default.conf
# COPY ./dummy /usr/lib/nginx-plus/check-subscription
rm -rf /etc/nginx/sites-enabled/* /etc/nginx/conf.d/default.conf && \
mkdir /etc/nginx/stream
COPY ./dummy /usr/lib/nginx-plus/check-subscription
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 443
STOPSIGNAL SIGTERM
......
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 '$host:$server_port '
'$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$request_uri" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$upstream_cache_status" "$upstream_http_cache_control"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
# TCP/UDP proxy and load balancing block
stream {
# Example configuration for TCP load balancing
#upstream stream_backend {
# zone tcp_servers 64k;
# server backend1.example.com:12345;
# server backend2.example.com:12345;
#}
#server {
# listen 12345;
# status_zone tcp_server;
# proxy_pass stream_backend;
#}
include /etc/nginx/stream/*.conf;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment