master
cn.yimian.xyz 4 years ago
parent 634c439cd8
commit 788350a0c7
  1. 33
      cn.yimian.xyz/nginx/conf.d/github.yimian.xyz.conf
  2. 4
      common/hosts/hosts.deny

@ -0,0 +1,33 @@
server {
listen 80;
listen [::]:80;
server_name github.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
#listen [::]:80;
listen 443 ssl;
root /home/www/github;
index index.php index.html;
server_name github.yimian.xyz;
ssl_certificate /mnt/config/ssl/yimian.xyz/yimian.xyz.crt; #2
ssl_certificate_key /mnt/config/ssl/yimian.xyz/yimian.xyz.key; #3
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
#error_page 404 = /404.php;
location = /index.html {
}
location / {
rewrite ^(.*)$ https://github.yimian.xyz/index.html?proj=$1 last;
}
}

@ -32,3 +32,7 @@ sshd: 122.112.133.182
sshd: 85.209.0.101
# DenyHosts: Wed Sep 2 22:06:31 2020 | sshd: 85.209.0.100
sshd: 85.209.0.100
# DenyHosts: Fri Sep 4 12:20:38 2020 | sshd: 85.209.0.102
sshd: 85.209.0.102
# DenyHosts: Fri Sep 4 16:34:52 2020 | sshd: 85.209.0.252
sshd: 85.209.0.252

Loading…
Cancel
Save