2015-01-13 20:19:42 +00:00
|
|
|
# vim: ft=nginx
|
|
|
|
|
2014-04-07 05:20:09 +00:00
|
|
|
include root-base.conf;
|
|
|
|
|
|
|
|
http {
|
|
|
|
include http-base.conf;
|
|
|
|
include hosted-http-base.conf;
|
2015-01-13 20:19:42 +00:00
|
|
|
include rate-limiting.conf;
|
|
|
|
|
2015-05-22 20:25:28 +00:00
|
|
|
ssl_certificate ./stack/ssl.cert;
|
|
|
|
ssl_certificate_key ./stack/ssl.key;
|
2015-07-01 19:35:40 +00:00
|
|
|
ssl_trusted_certificate ./stack/ssl.key;
|
2015-05-22 20:25:28 +00:00
|
|
|
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
|
|
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
|
ssl_session_timeout 5m;
|
|
|
|
ssl_stapling on;
|
|
|
|
ssl_stapling_verify on;
|
|
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
|
2014-04-07 05:20:09 +00:00
|
|
|
server {
|
|
|
|
include server-base.conf;
|
|
|
|
|
2015-05-20 20:31:00 +00:00
|
|
|
listen 443 default;
|
2015-05-22 17:35:49 +00:00
|
|
|
|
2014-04-07 05:20:09 +00:00
|
|
|
ssl on;
|
2015-05-22 17:35:49 +00:00
|
|
|
|
2015-05-22 17:54:43 +00:00
|
|
|
# This header must be set only for HTTPS
|
2015-05-22 17:35:49 +00:00
|
|
|
add_header Strict-Transport-Security "max-age=63072000; preload";
|
2014-04-07 05:20:09 +00:00
|
|
|
}
|
2015-01-22 17:58:48 +00:00
|
|
|
|
|
|
|
server {
|
2015-02-19 21:24:05 +00:00
|
|
|
include server-base.conf;
|
2015-01-22 17:58:48 +00:00
|
|
|
|
2015-05-20 20:31:00 +00:00
|
|
|
listen 8443 default proxy_protocol;
|
2015-01-22 17:58:48 +00:00
|
|
|
ssl on;
|
2015-05-22 17:35:49 +00:00
|
|
|
|
2015-05-22 17:54:43 +00:00
|
|
|
# This header must be set only for HTTPS
|
2015-05-22 17:35:49 +00:00
|
|
|
add_header Strict-Transport-Security "max-age=63072000; preload";
|
2015-06-16 16:14:22 +00:00
|
|
|
|
|
|
|
real_ip_header proxy_protocol;
|
|
|
|
|
|
|
|
access_log /dev/stdout lb_pp;
|
2015-01-22 17:58:48 +00:00
|
|
|
}
|
2014-04-07 05:20:09 +00:00
|
|
|
}
|