|
|
|
@ -71,4 +71,45 @@ server |
|
|
|
|
error_log off; |
|
|
|
|
access_log /dev/null; |
|
|
|
|
} |
|
|
|
|
access_log /var/log/nginx/flyapps_access.log; |
|
|
|
|
error_log /var/log/nginx/flyapps_error.log; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
server |
|
|
|
|
{ |
|
|
|
|
listen 3448 ssl http2; |
|
|
|
|
server_name app.hehelucky.cn; |
|
|
|
|
index index.html index.htm default.htm default.html; |
|
|
|
|
root /data/fir_admin; |
|
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/conf.d/app.hehelucky.cn.pem; |
|
|
|
|
ssl_certificate_key /etc/nginx/conf.d/app.hehelucky.cn.key; |
|
|
|
|
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; |
|
|
|
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; |
|
|
|
|
ssl_prefer_server_ciphers on; |
|
|
|
|
ssl_session_cache shared:SSL:10m; |
|
|
|
|
ssl_session_timeout 10m; |
|
|
|
|
error_page 497 https://$host$request_uri; |
|
|
|
|
|
|
|
|
|
location ~ ^/(api|flower) { |
|
|
|
|
uwsgi_send_timeout 300; # 指定向uWSGI传送请求的超时时间,完成握手后向uWSGI传送请求的超时时间。 |
|
|
|
|
uwsgi_connect_timeout 300; # 指定连接到后端uWSGI的超时时间。 |
|
|
|
|
uwsgi_read_timeout 300; # 指定接收uWSGI应答的超时时间,完成握手后接收uWSGI应答的超时时间。 |
|
|
|
|
include uwsgi_params; |
|
|
|
|
uwsgi_pass flyapps:8898; |
|
|
|
|
uwsgi_param UWSGI_SCRIPT wsgi; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
access_log /var/log/nginx/fadmin_access.log; |
|
|
|
|
error_log /var/log/nginx/fadmin_error.log; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|