diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..0088c3c --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,4 @@ +FROM nginx:1.21.0 + +ADD nginx.conf /etc/nginx/nginx.conf +ADD loadcat.conf /etc/loadcat.conf diff --git a/docker/loadcat.conf b/docker/loadcat.conf new file mode 100644 index 0000000..2f59a5f --- /dev/null +++ b/docker/loadcat.conf @@ -0,0 +1,7 @@ +[core] +address = ":26590" +dir = "" +driver = "nginx" + +[nginx] +mode = "exec" diff --git a/docker/nginx.conf b/docker/nginx.conf new file mode 100644 index 0000000..8463818 --- /dev/null +++ b/docker/nginx.conf @@ -0,0 +1,32 @@ +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" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + #include /etc/nginx/conf.d/*.conf; + include /var/lib/loadcat/out/*/nginx.conf; +}