cn.yimian.xyz 4 years ago
parent 99f67992b8
commit 34fca85b46
  1. 25
      cn.yimian.xyz/nginx/conf.d/home.yimian.xyz.conf
  2. 2
      cn.yimian.xyz/nginx/nginx.conf
  3. 2
      common/hosts/hosts.deny

@ -1,25 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name home.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
listen 443 ssl;
server_name home.yimian.xyz;
client_max_body_size 9000M;
ssl_certificate /mnt/config/ssl/yimian.xyz/yimian.xyz.crt;
ssl_certificate_key /mnt/config/ssl/yimian.xyz/yimian.xyz.key;
location / {
proxy_pass http://frp:4480;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

@ -27,7 +27,7 @@ http {
types_hash_max_size 2048;
client_max_body_size 5000m;
include /etc/common/nginx/mime.types;
include /mnt/etc/common/nginx/mime.types;
default_type application/octet-stream;
map $http_upgrade $connection_upgrade {

@ -16,3 +16,5 @@ sshd:111.161.74.100:deny
sshd:49.236.192.194:deny
sshd:139.199.115.210:deny
sshd:106.13.233.102:deny
# DenyHosts: Thu Aug 20 01:01:35 2020 | sshd: 117.78.39.146
sshd: 117.78.39.146

Loading…
Cancel
Save