Skip to content

Commit

Permalink
设置时区为 Asia/Shanghai
Browse files Browse the repository at this point in the history
  • Loading branch information
gooaclok819 committed Nov 1, 2024
2 parents a502268 + b139172 commit ec99d57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ jobs:
# 构建并推送多平台 Docker 镜像
- name: Build and Push Multi-Arch Docker Image
run: |
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t jaaksi/sublinkx:latest --push .
docker buildx build --platform linux/amd64,linux/arm64 \
-t jaaksi/sublinkx:latest \
--push .
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ FROM alpine:latest
WORKDIR /app

# 设置时区为 Asia/Shanghai
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
ENV TZ=Asia/Shanghai

COPY --from=builder /app/sublinkX /app/sublinkX
EXPOSE 8000
CMD ["/app/sublinkX"]
CMD ["/app/sublinkX"]

6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ surge支持协议:ss trojan vmess hy2 tuic

## [更新说明]

客户端支持自动识别
修复surge无效 包含模版解析错误

订阅链接修改增加其安全性,不再有客户端名称

修复重置账户密码无效
修复少许bug

## [安装说明]
### linux方式:
Expand Down
5 changes: 4 additions & 1 deletion node/clash.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

type Proxy struct {
Name string `yaml:"name,omitempty"`
Type string `yaml:"type,omitempty"`
请键入 string `yaml:"type,omitempty"`
Server string `yaml:"server,omitempty"`
Port int `yaml:"port,omitempty"`
Cipher string `yaml:"cipher,omitempty"`
Expand Down Expand Up @@ -233,6 +233,9 @@ func EncodeClash(urls []string, sqlconfig SqlConfig) ([]byte, error) {
if vless.Query.Security != "" {
tls = true
}
if vless.Query.Security == "none" {
tls = false
}
vlessproxy := Proxy{
Name: vless.Name,
Type: "vless",
Expand Down

0 comments on commit ec99d57

Please sign in to comment.