mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-29 02:56:08 +08:00
更新nginx配置
This commit is contained in:
parent
1b85c52557
commit
6a690a6108
|
@ -14,6 +14,13 @@ server {
|
||||||
proxy_pass http://api;
|
proxy_pass http://api;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /open {
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_pass http://api;
|
||||||
|
}
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
gzip_types text/plain application/json application/javascript application/x-javascript text/css application/xml text/javascript;
|
gzip_types text/plain application/json application/javascript application/x-javascript text/css application/xml text/javascript;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user