mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-11 11:46:37 +08:00
Merge pull request #62 from Sagit-chu/update-tz-mirror
feat: add Shanghai timezone to docker-compose and update github mirror
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
|||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
LOG_DIR: /app/logs
|
LOG_DIR: /app/logs
|
||||||
SERVER_ADDR: :6365
|
SERVER_ADDR: :6365
|
||||||
|
TZ: Asia/Shanghai
|
||||||
ports:
|
ports:
|
||||||
- "${BACKEND_PORT}:6365"
|
- "${BACKEND_PORT}:6365"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ services:
|
|||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
LOG_DIR: /app/logs
|
LOG_DIR: /app/logs
|
||||||
SERVER_ADDR: :6365
|
SERVER_ADDR: :6365
|
||||||
|
TZ: Asia/Shanghai
|
||||||
ports:
|
ports:
|
||||||
- "${BACKEND_PORT}:6365"
|
- "${BACKEND_PORT}:6365"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ COUNTRY=$(curl -s https://ipinfo.io/country)
|
|||||||
maybe_proxy_url() {
|
maybe_proxy_url() {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
if [ "$COUNTRY" = "CN" ]; then
|
if [ "$COUNTRY" = "CN" ]; then
|
||||||
echo "https://ghfast.top/${url}"
|
echo "https://gcode.hostcentral.cc/${url}"
|
||||||
else
|
else
|
||||||
echo "$url"
|
echo "$url"
|
||||||
fi
|
fi
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ COUNTRY=$(curl -s https://ipinfo.io/country)
|
|||||||
maybe_proxy_url() {
|
maybe_proxy_url() {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
if [ "$COUNTRY" = "CN" ]; then
|
if [ "$COUNTRY" = "CN" ]; then
|
||||||
echo "https://ghfast.top/${url}"
|
echo "https://gcode.hostcentral.cc/${url}"
|
||||||
else
|
else
|
||||||
echo "$url"
|
echo "$url"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user