增加nginx直接读取资源配置,一般用于使用本地存储,并通过cdn访问

super_sign_new
youngS 4 years ago
parent e2eaa14da5
commit 1683f27792
  1. 5
      fir_ser/nginx-vhost.conf

@ -29,6 +29,11 @@ server
ssl_session_timeout 10m; ssl_session_timeout 10m;
error_page 497 https://$host$request_uri; error_page 497 https://$host$request_uri;
# 如果未开启token 授权,可以启动下面配置,直接让nginx读取资源,无需 uwsgi 进行转发
# location ~ ^/download/ {
# root /data/flyapp/fir_ser/;
# rewrite ^/download/(.*) /files/$1 break;
# }

Loading…
Cancel
Save