From 6bddeb7501636b995dae5b9e8a09d808537a59f8 Mon Sep 17 00:00:00 2001 From: Mahmud Ridwan Date: Thu, 17 Jun 2021 14:09:17 +0600 Subject: [PATCH] Add Docker image files --- docker/Dockerfile | 4 ++++ docker/loadcat.conf | 7 +++++++ docker/nginx.conf | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/loadcat.conf create mode 100644 docker/nginx.conf 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; +}