Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit b0bdcea

Browse files
authored
Create fastgit.org.conf
1 parent 1be8dea commit b0bdcea

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

fastgit.org.conf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen 80;
3+
listen [::]:80;
4+
listen 443 ssl http2;
5+
6+
server_name fastgit.org;
7+
root /www/wwwroot/fgorg;
8+
index index.html;
9+
10+
ssl_stapling on;
11+
ssl_stapling_verify on;
12+
ssl_trusted_certificate /var/www/cert/fg.pem;
13+
14+
ssl_certificate /var/www/cert/fg.pem;
15+
ssl_certificate_key /var/www/cert/fg.key;
16+
17+
# Run following command & set permission before configuring
18+
# curl https://ssl-config.mozilla.org/ffdhe2048.txt > /var/lib/nginx/dhparam.pem
19+
ssl_dhparam /var/lib/nginx/dhparam.pem;
20+
21+
ssl_protocols TLSv1.2 TLSv1.3;
22+
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;
23+
ssl_prefer_server_ciphers off;
24+
25+
ssl_session_cache shared:SSL:10m;
26+
ssl_session_timeout 60m;
27+
ssl_session_tickets off;
28+
29+
location / {
30+
try_files $uri $uri/ =404;
31+
}
32+
33+
}

0 commit comments

Comments
 (0)