This commit is contained in:
@ -31,15 +31,10 @@ location ~ ^/api/v1/.*$ {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://local;
|
||||
}
|
||||
|
||||
location ~ ^/lvgl/.+$ {
|
||||
root amass_blog;
|
||||
index index.html index.htm;
|
||||
try_files /lvgl/index.html =404;
|
||||
}
|
||||
|
||||
location ^~ /api/v1/freedom {
|
||||
if ($http_upgrade != "websocket") { # WebSocket协商失败时返回404
|
||||
return 404;
|
||||
|
Reference in New Issue
Block a user