diff --git a/UnblockNeteaseMusic/Makefile b/UnblockNeteaseMusic/Makefile index ed4644d54..877944aad 100644 --- a/UnblockNeteaseMusic/Makefile +++ b/UnblockNeteaseMusic/Makefile @@ -6,12 +6,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=UnblockNeteaseMusic PKG_BASE_VERSION:=0.27.0-rc.4 -PKG_RELEASE:=79 +PKG_RELEASE:=81 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/UnblockNeteaseMusic/server.git PKG_SOURCE_DATE:=2021-12-21 -PKG_SOURCE_VERSION:=3ed1825fc68d84757212dd683e10a5fc25d91088 +PKG_SOURCE_VERSION:=068794813188d8543f6a2f396907ce1b55351e77 PKG_MIRROR_HASH:=skip PKG_VERSION:=$(PKG_BASE_VERSION)-$(PKG_SOURCE_DATE)-$(call version_abbrev,$(PKG_SOURCE_VERSION)) diff --git a/my-default-settings/files/etc/config/nginx b/my-default-settings/files/etc/config/nginx index e482a1fcf..c26fbd82a 100644 --- a/my-default-settings/files/etc/config/nginx +++ b/my-default-settings/files/etc/config/nginx @@ -7,7 +7,7 @@ config server '_lan' list listen '[::]:80 default_server' option server_name 'op' option index 'luci index.html index.htm' - list rewrite '"^/$" $scheme://$host/luci/ permanent' + list rewrite '"^/$" $scheme://$http_host/luci/ permanent' list include 'conf.d/*.locations' option access_log 'off; # logd openwrt' @@ -16,7 +16,7 @@ config server '_ssl' list listen '[::]:443 ssl' option server_name '_ssl' option index 'luci index.html index.htm' - list rewrite '"^/$" $scheme://$host/luci/ permanent' + list rewrite '"^/$" $scheme://$http_host/luci/ permanent' list include 'conf.d/*.locations' option ssl_certificate '/etc/nginx/conf.d/_lan.crt' option ssl_certificate_key '/etc/nginx/conf.d/_lan.key' diff --git a/my-default-settings/files/etc/uci-defaults/95-default-settings b/my-default-settings/files/etc/uci-defaults/95-default-settings index f6ca36a05..f493d2337 100644 --- a/my-default-settings/files/etc/uci-defaults/95-default-settings +++ b/my-default-settings/files/etc/uci-defaults/95-default-settings @@ -3,8 +3,8 @@ grep -q "host/luci" /etc/config/nginx || { uci -q set nginx._lan.index="luci index.html index.htm" uci -q set nginx._ssl.index="luci index.html index.htm" - uci -q add_list nginx._lan.rewrite='"^/$" $scheme://$host/luci/ permanent' - uci -q add_list nginx._ssl.rewrite='"^/$" $scheme://$host/luci/ permanent' + uci -q add_list nginx._lan.rewrite='"^/$" $scheme://$http_host/luci/ permanent' + uci -q add_list nginx._ssl.rewrite='"^/$" $scheme://$http_host/luci/ permanent' uci commit nginx service nginx reload }