nginx conf chnage

master
usa.yimian.xyz 4 years ago
parent c65215b4f9
commit f446663c27
  1. 4
      cn.yimian.xyz/nginx/conf.d/acg.watch.conf
  2. 2
      cn.yimian.xyz/nginx/conf.d/api.yimian.xyz.conf
  3. 2
      cn.yimian.xyz/nginx/conf.d/auth.yimian.xyz.conf
  4. 2
      cn.yimian.xyz/nginx/conf.d/img.yimian.xyz.conf.dead
  5. 2
      cn.yimian.xyz/nginx/conf.d/imgbed.yimian.xyz.conf
  6. 30
      cn.yimian.xyz/nginx/conf.d/iotcat.me.conf
  7. 2
      cn.yimian.xyz/nginx/conf.d/log.yimian.xyz.conf
  8. 2
      cn.yimian.xyz/nginx/conf.d/login.yimian.xyz.conf
  9. 2
      cn.yimian.xyz/nginx/conf.d/pay.yimian.xyz.conf
  10. 2
      cn.yimian.xyz/nginx/conf.d/session.yimian.xyz.conf
  11. 2
      cn.yimian.xyz/nginx/conf.d/share.yimian.xyz.conf
  12. 2
      cn.yimian.xyz/nginx/conf.d/shorturl.yimian.xyz.conf
  13. 2
      cn.yimian.xyz/nginx/conf.d/user.yimian.xyz.conf
  14. 2
      cn.yimian.xyz/nginx/conf.d/ushio-win.yimian.xyz.conf
  15. 32
      cn.yimian.xyz/nginx/conf.d/ushio.cool.conf
  16. 2
      cn.yimian.xyz/nginx/conf.d/v2ray.yimian.xyz.conf
  17. 2
      cn.yimian.xyz/nginx/conf.d/wanzongbiz.com.conf
  18. 2
      cn.yimian.xyz/nginx/conf.d/wiot-ota.yimian.xyz.conf
  19. 2
      cn.yimian.xyz/nginx/conf.d/www.eee.dog.conf
  20. 2
      cn.yimian.xyz/nginx/conf.d/yimian.xyz.conf
  21. 0
      cn.yimian.xyz/nginx/default.d/.place_holder
  22. 13
      cn.yimian.xyz/nginx/default.d/php.conf
  23. 20
      cn.yimian.xyz/nginx/default.d/wp-supercache.conf.b
  24. 3
      cn.yimian.xyz/nginx/nginx.conf
  25. 0
      common/nginx/conf.d/.space_holder
  26. 0
      common/nginx/default.d/cache.conf
  27. 0
      common/nginx/default.d/favicon.conf
  28. 0
      common/nginx/default.d/hsts.conf
  29. 2
      common/nginx/default.d/php.conf
  30. 0
      common/nginx/fastcgi.conf
  31. 0
      common/nginx/fastcgi_params
  32. 0
      common/nginx/mime.types
  33. 0
      common/nginx/nginx.conf.b
  34. 2
      home.yimian.xyz/nginx/conf.d/home.yimian.xyz.conf
  35. 32
      home.yimian.xyz/nginx/conf.d/ushio.cool.conf
  36. 0
      home.yimian.xyz/nginx/default.d/.place_holder
  37. 13
      home.yimian.xyz/nginx/default.d/cache.conf
  38. 3
      home.yimian.xyz/nginx/default.d/favicon.conf
  39. 1
      home.yimian.xyz/nginx/default.d/hsts.conf
  40. 13
      home.yimian.xyz/nginx/default.d/php.conf
  41. 20
      home.yimian.xyz/nginx/default.d/wp-supercache.conf.b
  42. 26
      home.yimian.xyz/nginx/fastcgi.conf
  43. 25
      home.yimian.xyz/nginx/fastcgi_params
  44. 97
      home.yimian.xyz/nginx/mime.types
  45. 3
      home.yimian.xyz/nginx/nginx.conf
  46. 117
      home.yimian.xyz/nginx/nginx.conf.b
  47. 46
      usa.yimian.xyz/nginx/conf.d/acg.watch.conf.bck
  48. 42
      usa.yimian.xyz/nginx/conf.d/imgbed.yimian.xyz.conf.bck
  49. 1
      usa.yimian.xyz/nginx/conf.d/iotcat.me.conf
  50. 25
      usa.yimian.xyz/nginx/conf.d/onedrive.yimian.xyz.conf
  51. 35
      usa.yimian.xyz/nginx/conf.d/session.yimian.xyz.conf
  52. 42
      usa.yimian.xyz/nginx/conf.d/share.yimian.xyz.conf.bck
  53. 3
      usa.yimian.xyz/nginx/conf.d/ushio.cool.conf
  54. 39
      usa.yimian.xyz/nginx/conf.d/www.eee.dog.conf.bck
  55. 0
      usa.yimian.xyz/nginx/default.d/.place_holder
  56. 13
      usa.yimian.xyz/nginx/default.d/cache.conf
  57. 3
      usa.yimian.xyz/nginx/default.d/favicon.conf
  58. 1
      usa.yimian.xyz/nginx/default.d/hsts.conf
  59. 20
      usa.yimian.xyz/nginx/default.d/wp-supercache.conf.b
  60. 26
      usa.yimian.xyz/nginx/fastcgi.conf
  61. 25
      usa.yimian.xyz/nginx/fastcgi_params
  62. 97
      usa.yimian.xyz/nginx/mime.types
  63. 3
      usa.yimian.xyz/nginx/nginx.conf
  64. 117
      usa.yimian.xyz/nginx/nginx.conf.b

@ -28,7 +28,9 @@ server {
# rewrite ^(.*)$ https://www.$host$1 permanent;
# Load configuration files for the default server block.
include /etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /etc/common/nginx/default.d/*.conf;
# if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; }
# if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; }

@ -33,7 +33,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location ^~ /coro/ {
proxy_pass http://coro-api:17676/;

@ -27,7 +27,7 @@ server {
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
proxy_cookie_path / "/; secure; SameSite=None";

@ -38,7 +38,7 @@ server {
}
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;

@ -27,7 +27,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -1,30 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name iotcat.me www.iotcat.me;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name iotcat.me www.iotcat.me;
root /home/www/iotcat.me;
index index.html;
ssl_certificate /mnt/config/ssl/iotcat.me/iotcat.me.crt; #2
ssl_certificate_key /mnt/config/ssl/iotcat.me/iotcat.me.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/cn.yimian.xyz/nginx/default.d/*.conf;
}

@ -26,7 +26,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -26,7 +26,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -27,7 +27,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -26,7 +26,7 @@ server {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include /mnt/etc/common/nginx/fastcgi_params;
fastcgi_keep_conn on;
}

@ -27,7 +27,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -25,5 +25,5 @@ server {
ssl_prefer_server_ciphers on;
#error_page 404 = /404.php;
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
}

@ -27,7 +27,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -26,7 +26,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {

@ -1,32 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name ushio.cool www.ushio.cool;
rewrite ^(.*)$ https://ushio.cool$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name ushio.cool;
root /mnt/html/ushio;
index index.html;
ssl_certificate /mnt/config/ssl/ushio.cool/ushio.cool.crt; #2
ssl_certificate_key /mnt/config/ssl/ushio.cool/ushio.cool.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/cn.yimian.xyz/nginx/default.d/*.conf;
}

@ -27,7 +27,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
location / {
}

@ -10,6 +10,6 @@ server {
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
}

@ -24,5 +24,5 @@ server {
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
}

@ -26,7 +26,7 @@ server {
#error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; }
if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; }

@ -25,6 +25,6 @@ server {
ssl_prefer_server_ciphers on;
# Load configuration files for the default server block.
include /mnt/etc/cn.yimian.xyz/nginx/default.d/*.conf;
include /mnt/etc/common/nginx/default.d/*.conf;
}

@ -1,13 +0,0 @@
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass php-fpm:9000;
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_keep_conn on;
}

@ -1,20 +0,0 @@
set $cache_uri $request_uri;
if ($request_method = POST) {
set $cache_uri 'null cache';
}
if ($query_string != "") {
set $cache_uri 'null cache';
}
if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache';
}
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
set $cache_uri 'null cache';
}
location / {
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args ;
}

@ -27,7 +27,7 @@ http {
types_hash_max_size 2048;
client_max_body_size 5000m;
include /etc/nginx/mime.types;
include /etc/common/nginx/mime.types;
default_type application/octet-stream;
map $http_upgrade $connection_upgrade {
@ -38,6 +38,7 @@ http {
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /mnt/etc/common/nginx/conf.d/*.conf;
include /mnt/etc/cn.yimian.xyz/nginx/conf.d/*.conf;
server {

@ -8,6 +8,6 @@ location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include /mnt/etc/common/nginx/fastcgi_params;
fastcgi_keep_conn on;
}

@ -19,7 +19,7 @@ server {
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/share/index.php;
include fastcgi_params;
include /mnt/etc/common/nginx/fastcgi_params;
}
location /pan/ {

@ -1,32 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name ushio.cool www.ushio.cool;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name ushio.cool www.ushio.cool;
root /mnt/html/ushio;
index index.html;
ssl_certificate /mnt/config/ssl/ushio.cool/ushio.cool.crt; #2
ssl_certificate_key /mnt/config/ssl/ushio.cool/ushio.cool.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/usa.yimian.xyz/nginx/default.d/*.conf;
}

@ -1,13 +0,0 @@
location ~* ^.+\.(ico|gif|jpg|jpeg|png)$ {
access_log off;
expires 30d;
}
location ~* ^.+\.(css|js|txt|xml|swf|wav)$ {
access_log off;
expires 24h;
}
location ~* ^.+\.(html|htm)$ {
expires 1h;
}

@ -1,3 +0,0 @@
location = /favicon.ico {
#proxy_pass https://cdn.yimian.xyz/img/head/head3r.ico;
}

@ -1 +0,0 @@
add_header Strict-Transport-Security "max-age=31536000";

@ -1,13 +0,0 @@
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass php-fpm:9000;
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_keep_conn on;
}

@ -1,20 +0,0 @@
set $cache_uri $request_uri;
if ($request_method = POST) {
set $cache_uri 'null cache';
}
if ($query_string != "") {
set $cache_uri 'null cache';
}
if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache';
}
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
set $cache_uri 'null cache';
}
location / {
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args ;
}

@ -1,26 +0,0 @@
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

@ -1,25 +0,0 @@
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

@ -1,97 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}

@ -27,7 +27,7 @@ http {
types_hash_max_size 2048;
client_max_body_size 5000m;
include /etc/nginx/mime.types;
include /mnt/etc/common/nginx/mime.types;
default_type application/octet-stream;
map $http_upgrade $connection_upgrade {
@ -59,5 +59,6 @@ http {
}
}
include /mnt/etc/common/nginx/conf.d/*.conf;
include /mnt/etc/home.yimian.xyz/nginx/conf.d/*.conf;
}

@ -1,117 +0,0 @@
user nginx;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}

@ -1,46 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name acg.watch;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
#listen [::]:80;
listen 443 ssl;
server_name acg.watch;
root /home/www/acg.watch;
index index.php index.html;
ssl_certificate /mnt/config/ssl/acg.watch/acg.watch.crt; #2
ssl_certificate_key /mnt/config/ssl/acg.watch/acg.watch.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;
# rewrite ^(.*)$ https://www.$host$1 permanent;
# Load configuration files for the default server block.
include /etc/usa.yimian.xyz/nginx/default.d/*.conf;
# if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; }
# if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; }
# if (!-f $request_filename){ rewrite (.*) /index.php; }
# if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; }
location /api/ {
proxy_pass http://acg.watch-api:30080;
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;
}
}

@ -1,42 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name imgbed.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name imgbed.yimian.xyz;
root /home/www/imgbed;
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/uk.yimian.xyz/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}

@ -25,6 +25,7 @@ server {
ssl_prefer_server_ciphers on;
# Load configuration files for the default server block.
include /mnt/etc/common/nginx/default.d/*.conf;
include /mnt/etc/usa.yimian.xyz/nginx/default.d/*.conf;
}

@ -1,25 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name onedrive.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
listen 443 ssl;
server_name onedrive.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://oneindex:80;
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;
}
}

@ -1,35 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name session.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
listen 443 ssl;
server_name session.yimian.xyz;
ssl_certificate /mnt/config/ssl/yimian.xyz/yimian.xyz.crt;
ssl_certificate_key /mnt/config/ssl/yimian.xyz/yimian.xyz.key;
location ^~ /websocket/ {
proxy_pass http://session:21514/;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location / {
proxy_pass http://session:21513/;
}
}

@ -1,42 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name share.yimian.xyz;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
# listen 80;
# listen [::]:80;
listen 443 ssl;
server_name share.yimian.xyz;
root /home/www/filebed;
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/usa.yimian.xyz/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}

@ -12,7 +12,7 @@ server {
listen 443 ssl;
server_name ushio.cool www.ushio.cool;
root /mnt/html/ushio;
root /home/www/ushio.cool;
index index.html;
ssl_certificate /mnt/config/ssl/ushio.cool/ushio.cool.crt; #2
@ -26,6 +26,7 @@ server {
# error_page 404 = /404.php;
# Load configuration files for the default server block.
include /mnt/etc/common/nginx/default.d/*.conf;
include /mnt/etc/usa.yimian.xyz/nginx/default.d/*.conf;

@ -1,39 +0,0 @@
server {
listen 80;
#listen [::]:80;
server_name www.eee.dog;
rewrite ^(.*)$ https://$host$1 permanent;
}
server {
#listen 80;
#listen [::]:80;
listen 443 ssl;
server_name www.eee.dog;
root /home/www/blog;
index index.php index.html;
ssl_certificate /mnt/config/ssl/eee.dog/eee.dog.crt; #2
ssl_certificate_key /mnt/config/ssl/eee.dog/eee.dog.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/usa.yimian.xyz/nginx/default.d/*.conf;
if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; }
if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; }
if (!-f $request_filename){ rewrite (.*) /index.php; }
if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; }
location / {
}
}

@ -1,13 +0,0 @@
location ~* ^.+\.(ico|gif|jpg|jpeg|png)$ {
access_log off;
expires 30d;
}
location ~* ^.+\.(css|js|txt|xml|swf|wav)$ {
access_log off;
expires 24h;
}
location ~* ^.+\.(html|htm)$ {
expires 1h;
}

@ -1,3 +0,0 @@
location = /favicon.ico {
#proxy_pass https://cdn.yimian.xyz/img/head/head3r.ico;
}

@ -1 +0,0 @@
add_header Strict-Transport-Security "max-age=31536000";

@ -1,20 +0,0 @@
set $cache_uri $request_uri;
if ($request_method = POST) {
set $cache_uri 'null cache';
}
if ($query_string != "") {
set $cache_uri 'null cache';
}
if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $cache_uri 'null cache';
}
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
set $cache_uri 'null cache';
}
location / {
try_files /wp-content/cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php?$args ;
}

@ -1,26 +0,0 @@
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

@ -1,25 +0,0 @@
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;

@ -1,97 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/svg+xml svg svgz;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/webp webp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
font/woff woff;
font/woff2 woff2;
application/java-archive jar war ear;
application/json json;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.apple.mpegurl m3u8;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/vnd.ms-excel xls;
application/vnd.ms-fontobject eot;
application/vnd.ms-powerpoint ppt;
application/vnd.oasis.opendocument.graphics odg;
application/vnd.oasis.opendocument.presentation odp;
application/vnd.oasis.opendocument.spreadsheet ods;
application/vnd.oasis.opendocument.text odt;
application/vnd.openxmlformats-officedocument.presentationml.presentation
pptx;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xlsx;
application/vnd.openxmlformats-officedocument.wordprocessingml.document
docx;
application/vnd.wap.wmlc wmlc;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/xspf+xml xspf;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp2t ts;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}

@ -27,7 +27,7 @@ http {
types_hash_max_size 2048;
client_max_body_size 5000m;
include /etc/nginx/mime.types;
include /mnt/etc/common/nginx/mime.types;
default_type application/octet-stream;
map $http_upgrade $connection_upgrade {
@ -59,5 +59,6 @@ http {
}
}
include /mnt/etc/common/nginx/conf.d/*.conf;
include /mnt/etc/usa.yimian.xyz/nginx/conf.d/*.conf;
}

@ -1,117 +0,0 @@
user nginx;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
Loading…
Cancel
Save