mirror of https://github.com/IoTcat/ushio-etc.git
master
parent
f08791c784
commit
2a32f2ce13
1 changed files with 34 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||||||
|
server { |
||||||
|
listen 80; |
||||||
|
#listen [::]:80; |
||||||
|
server_name v2ray.yimian.xyz; |
||||||
|
rewrite ^(.*)$ https://$host$1 permanent; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
server { |
||||||
|
# listen 80; |
||||||
|
# listen [::]:80; |
||||||
|
listen 443 ssl; |
||||||
|
|
||||||
|
server_name v2ray.yimian.xyz; |
||||||
|
root /home/www/v2ray; |
||||||
|
index index.php index.html; |
||||||
|
client_max_body_size 50m; |
||||||
|
|
||||||
|
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; |
||||||
|
|
||||||
|
# Load configuration files for the default server block. |
||||||
|
include /mnt/etc/common/nginx/default.d/*.conf; |
||||||
|
|
||||||
|
location / { |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue