Skip to content

Commit

Permalink
ci(nginx): update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
young committed Jul 25, 2024
1 parent a4f7663 commit 7354386
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ http {
default_type application/octet-stream;
server {
listen 80;
server_name promonkeyli.top;
return 301 https://$host$request_uri;
server_name www.promonkeyli.top;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name promonkeyli.top;
server_name www.promonkeyli.top;

ssl_certificate /etc/nginx/certs/promonkeyli.top_bundle.crt;
ssl_certificate_key /etc/nginx/certs/promonkeyli.top.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;

location / {
root /usr/share/nginx/html; #入口文件的所在目录
index index.html index.htm; #默认入口文件名称
Expand Down

0 comments on commit 7354386

Please sign in to comment.