forked from fsouza/docker-ssl-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf.template
34 lines (26 loc) · 956 Bytes
/
nginx.conf.template
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
32
33
34
worker_processes 1;
pid /run/nginx.pid;
daemon off;
events { worker_connections 1024; }
http {
sendfile on;
server {
listen 443;
client_max_body_size ${CLIENT_MAX_BODY_SIZE};
ssl_certificate /etc/nginx/certs/cert.pem;
ssl_certificate_key /etc/nginx/certs/key.pem;
ssl on;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://${TARGET_HOST}:${TARGET_PORT};
proxy_set_header X-Real-IP $remote_addr;
}
}
}