chat.yimian.xyz

master
cn.yimian.xyz 3 years ago
parent fd475f50e3
commit ceeabb9278
  1. 30
      cn.yimian.xyz/nginx/conf.d/chat.yimian.xyz.conf
  2. 13
      cn.yimian.xyz/nginx/conf.d/eee.dog.conf

@ -0,0 +1,30 @@
server {
listen 80;
#listen [::]:80;
server_name chat.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name chat.yimian.xyz;
root /home/www/chat;
index index.html;
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;
# Load configuration files for the default server block.
include /mnt/etc/common/nginx/default.d/*.conf;
}

@ -1,14 +1,6 @@
server {
listen 80;
listen [::]:80;
server_name eee.dog;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
#listen [::]:80;
listen 443 ssl;
server_name eee.dog;
@ -23,6 +15,11 @@ server {
ssl_prefer_server_ciphers on;
#error_page 404 = /404.php;
location /c/ {
rewrite ^/c/(.*)$ https://chat.yimian.xyz/?id=$1 last;
}
location / {
rewrite ^(.*)$ https://shorturl.yimian.xyz/s/index.php?s=$1 last;
}

Loading…
Cancel
Save