api替换
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
APP_ENV=development
|
||||
# 浏览器走同源 /api/*(配合 next.config rewrites)
|
||||
NEXT_PUBLIC_API_BASE_URL=
|
||||
# 调试上游:https://sgdj-h5.80sygtm.com/swagger/index.html
|
||||
# 调试上游:https://webhgbapi.mfcg.me/swagger/index.html
|
||||
# 注意:不要把媒资也指回本 H5,否则 /h5/m3u8 会 508「接口代理回环」。
|
||||
API_PROXY_TARGET=https://sgdj-h5.80sygtm.com
|
||||
API_PROXY_TARGET=https://webhgbapi.mfcg.me
|
||||
# 媒资密钥回退(H5 自指时);播放列表还可回退 MEDIA_CDN_ORIGIN 改写
|
||||
MEDIA_API_PROXY_TARGET=http://139.162.49.252:21036
|
||||
MEDIA_CDN_ORIGIN=https://dyum53hre43nj.cloudfront.net
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
APP_ENV=production
|
||||
NEXT_PUBLIC_API_BASE_URL=
|
||||
# 应用接口在 21036。不要写成 H5 的 21038,也不要写 127.0.0.1(H5 进程里不一定能连到本机 Go)。
|
||||
# web:21037(独立 web 服务);ht 后台:websgdj.weballht.com;项目代号 wdb_sgdj。
|
||||
API_PROXY_TARGET=http://139.162.49.252:21036
|
||||
# 黄果短剧应用接口。不要写成 H5 自身地址,也不要写 127.0.0.1(H5 进程里不一定能连到本机 Go)。
|
||||
API_PROXY_TARGET=https://webhgbapi.mfcg.me
|
||||
# Go 未配 cdnDomain/origDomain 时,播放列表回退到媒资 CDN 改写
|
||||
MEDIA_API_PROXY_TARGET=http://139.162.49.252:21036
|
||||
MEDIA_CDN_ORIGIN=https://dyum53hre43nj.cloudfront.net
|
||||
@@ -11,5 +10,5 @@ MEDIA_KEY_FALLBACK_ORIGINS=https://91dj-h5.80sygtm.com
|
||||
PORT=21038
|
||||
NEXT_PUBLIC_TRACKER_APP_ID=JHA-1049
|
||||
NEXT_PUBLIC_GTAG_ID=
|
||||
NEXT_PUBLIC_SITE_URL=https://shuguodj.com
|
||||
NEXT_PUBLIC_SITE_URL=https://huangguoduanju.im
|
||||
NEXT_PUBLIC_APP_VERSION=1.0.0
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
APP_ENV=test
|
||||
# 浏览器走同源 /api/*,服务端再转到测试接口。不要写成 127.0.0.1:26149,那是本站端口。
|
||||
NEXT_PUBLIC_API_BASE_URL=
|
||||
API_PROXY_TARGET=https://sgdj-h5.80sygtm.com
|
||||
API_PROXY_TARGET=https://webhgbapi.mfcg.me
|
||||
# 播放 BFF 直连本机 Go;XFF 必须与 Node 访问媒资密钥的出站公网 IP 一致,否则 ticket 无法解 enkey。
|
||||
API_INTERNAL_ORIGIN=http://127.0.0.1:21025
|
||||
MEDIA_TICKET_FORWARDED_FOR=172.104.181.99
|
||||
|
||||
Reference in New Issue
Block a user