Skip to content

Commit

Permalink
Add Docker image files
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Jun 17, 2021
1 parent d9e89f3 commit 6bddeb7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM nginx:1.21.0

ADD nginx.conf /etc/nginx/nginx.conf
ADD loadcat.conf /etc/loadcat.conf
7 changes: 7 additions & 0 deletions docker/loadcat.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[core]
address = ":26590"
dir = ""
driver = "nginx"

[nginx]
mode = "exec"
32 changes: 32 additions & 0 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 6bddeb7

Please sign in to comment.