Skip to content

Commit 8896eb2

Browse files
author
Marco Pompili
committed
nginx upload limit to 50MBs
1 parent 678eac9 commit 8896eb2

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ COPY default.conf /etc/nginx/conf.d/
1111

1212
COPY gitconfig /etc/
1313

14+
COPY nginx.conf /etc/nginx/
15+
1416
COPY entrypoint.sh /usr/local/bin/
1517

1618
VOLUME ["/srv/git"]

nginx.conf

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
user nginx;
3+
worker_processes 1;
4+
5+
error_log /var/log/nginx/error.log warn;
6+
pid /var/run/nginx.pid;
7+
8+
9+
events {
10+
worker_connections 1024;
11+
}
12+
13+
14+
http {
15+
include /etc/nginx/mime.types;
16+
default_type application/octet-stream;
17+
18+
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
19+
'$status $body_bytes_sent "$http_referer" '
20+
'"$http_user_agent" "$http_x_forwarded_for"';
21+
22+
access_log /var/log/nginx/access.log main;
23+
24+
sendfile on;
25+
#tcp_nopush on;
26+
27+
keepalive_timeout 65;
28+
29+
#gzip on;
30+
31+
# Upload limit (good for git)
32+
client_max_body_size 50m;
33+
34+
include /etc/nginx/conf.d/*.conf;
35+
}

0 commit comments

Comments
 (0)