-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
53 lines (35 loc) · 893 Bytes
/
nginx.conf
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
worker_processes 1;
worker_rlimit_nofile 8192;
pid /tmp/nginx.pid;
daemon off;
events {
worker_connections 4096; ## Default: 1024
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128;
access_log /dev/stdout;
error_log /dev/stdout info;
server_tokens off;
client_max_body_size 0;
upstream backend {
server ${UPSTREAM_SERVER};
}
# Static assets
server {
listen 443 ssl;
root /public;
ssl_certificate /var/lego/certificates/${DOMAIN}.crt;
ssl_certificate_key /var/lego/certificates/${DOMAIN}.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
location / {
proxy_pass http://backend;
}
}
}