forked from honoki/bbrf-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
26 lines (22 loc) · 680 Bytes
/
nginx.conf
File metadata and controls
26 lines (22 loc) · 680 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
server {
# listen 80;
listen 443 ssl default_server reuseport;
# Load the self-signed certificate files.
ssl_certificate /etc/nginx/keys/cert.pem;
ssl_certificate_key /etc/nginx/keys/privkey.pem;
# enable gzip compression
gzip on;
gzip_types application/json
gzip_min_length 1000;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://bbrf-server_couchdb_1:5984;
proxy_ssl_session_reuse off;
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
proxy_redirect off;
client_max_body_size 4g;
}
}