优化代码

super_signature
nineven 4 years ago
parent 060f6991d6
commit e035f40d86
  1. 2
      fir_client/src/components/FirSuperSignBase.vue
  2. 14
      fir_ser/nginx-vhost.conf
  3. 59
      fir_ser/nginx.conf

@ -41,7 +41,7 @@
<el-dialog <el-dialog
title="请输入验证码" title="请在5分钟内输入验证码"
:visible.sync="codeactiveVisible" :visible.sync="codeactiveVisible"
width="30%" width="30%"
center> center>

@ -15,17 +15,10 @@ server
server_name fly.dvcloud.xin; server_name fly.dvcloud.xin;
index index.php index.html index.htm default.php default.htm default.html; index index.php index.html index.htm default.php default.htm default.html;
root /www/wwwroot/fly.dvcloud.xin; root /www/wwwroot/fly.dvcloud.xin;
proxy_connect_timeout 120;
proxy_read_timeout 120;
proxy_send_timeout 120;
#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则
#error_page 404/404.html;
#HTTP_TO_HTTPS_START
if ($server_port !~ 443){ if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent; rewrite ^(/.*)$ https://$host$1 permanent;
} }
#HTTP_TO_HTTPS_END
ssl_certificate /www/server/panel/vhost/cert/fly.dvcloud.xin/fullchain.pem; ssl_certificate /www/server/panel/vhost/cert/fly.dvcloud.xin/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/fly.dvcloud.xin/privkey.pem; ssl_certificate_key /www/server/panel/vhost/cert/fly.dvcloud.xin/privkey.pem;
@ -36,13 +29,18 @@ server
ssl_session_timeout 10m; ssl_session_timeout 10m;
error_page 497 https://$host$request_uri; error_page 497 https://$host$request_uri;
#SSL-END
location ~ ^/(download|api|files|udid|captcha) { location ~ ^/(download|api|files|udid|captcha) {
#proxy_pass http://synchrotron; #proxy_pass http://synchrotron;
#proxy_send_timeout 180;
#proxy_connect_timeout 180;
#proxy_read_timeout 180;
uwsgi_send_timeout 300; # 指定向uWSGI传送请求的超时时间,完成握手后向uWSGI传送请求的超时时间。
uwsgi_connect_timeout 300; # 指定连接到后端uWSGI的超时时间。
uwsgi_read_timeout 300; # 指定接收uWSGI应答的超时时间,完成握手后接收uWSGI应答的超时时间。
include uwsgi_params; include uwsgi_params;
uwsgi_pass 127.0.0.1:8899; uwsgi_pass 127.0.0.1:8899;
uwsgi_param UWSGI_SCRIPT wsgi; uwsgi_param UWSGI_SCRIPT wsgi;

@ -0,0 +1,59 @@
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /data/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
http {
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 /data/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 100m;
keepalive_timeout 300;
server_names_hash_bucket_size 512;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
}
Loading…
Cancel
Save