-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathnginx.conf
More file actions
31 lines (26 loc) · 803 Bytes
/
nginx.conf
File metadata and controls
31 lines (26 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
worker_processes 1;
events { worker_connections 1024; }
http {
# Increase buffer size
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
# Increase large client header buffers
large_client_header_buffers 4 16k;
server {
listen 80;
listen 8443 ssl;
ssl_certificate /etc/nginx/certs/localhost.crt;
ssl_certificate_key /etc/nginx/certs/localhost.key;
ssl_protocols TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
access_log off;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://172.17.0.1:3000/;
client_max_body_size 100M;
}
}
}