Skip to content

Commit 1c8f8e3

Browse files
committed
Add https of doc.r-l.o
1 parent 9949fa1 commit 1c8f8e3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

conf/docs.ruby-lang.org

+32
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,35 @@
112112
add_header Cache-Control "public, max-age=3600, s-maxage=172800, stale-while-revalidate=86400, stale-if-error=60";
113113
add_header Surrogate-Key "rurema-search-app";
114114
}
115+
116+
server {
117+
listen 443 ssl http2;
118+
listen [::]:443 ssl http2;
119+
120+
server_name doc.ruby-lang.org;
121+
122+
ssl on;
123+
ssl_certificate /etc/letsencrypt/live/doc.ruby-lang.org/fullchain.pem;
124+
ssl_certificate_key /etc/letsencrypt/live/doc.ruby-lang.org/privkey.pem;
125+
ssl_session_timeout 1d;
126+
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
127+
ssl_session_tickets off;
128+
129+
ssl_dhparam /etc/nginx/dhparam.pem;
130+
131+
# intermediate configuration
132+
ssl_protocols TLSv1.2;
133+
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
134+
ssl_prefer_server_ciphers off;
135+
136+
# OCSP stapling
137+
ssl_stapling on;
138+
ssl_stapling_verify on;
139+
140+
# verify chain of trust of OCSP response using Root CA and Intermediate certs
141+
ssl_trusted_certificate /etc/letsencrypt/live/doc.ruby-lang.org/chain.pem;
142+
143+
resolver 8.8.8.8;
144+
145+
return 301 https://docs.ruby-lang.org$request_uri;
146+
}

0 commit comments

Comments
 (0)