mirror of https://github.com/IoTcat/ushio-etc.git
parent
c65215b4f9
commit
f446663c27
64 changed files with 31 additions and 997 deletions
@ -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; |
||||
|
||||
} |
@ -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; |
||||
|
||||
|
||||
} |
@ -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,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; |
||||
} |
@ -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 { |
||||
} |
||||
} |
@ -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 { |
||||
} |
||||
} |
@ -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; |
||||
} |
@ -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…
Reference in new issue