From 1788541e0426f1cae2b5f7db6ed70b59dbfac456 Mon Sep 17 00:00:00 2001 From: nitezs Date: Sun, 17 Sep 2023 10:46:49 +0800 Subject: [PATCH] fix --- .goreleaser.yaml | 6 +++--- docker-compose.yml | 2 +- validator/sub.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8ee11b1..17bb435 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,6 +1,6 @@ -before: - hooks: - - go mod tidy +#before: +# hooks: +# - go mod tidy builds: - env: - CGO_ENABLED=0 diff --git a/docker-compose.yml b/docker-compose.yml index 717efe4..8a3b07a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,8 @@ services: ports: - "8011:8011" volumes: - - ./templates:/app/templates - ./logs:/app/logs + # - ./templates:/app/templates # environment: # - PORT=8011 # - META_TEMPLATE=template_meta.yaml diff --git a/validator/sub.go b/validator/sub.go index 4db8340..e3f32ed 100644 --- a/validator/sub.go +++ b/validator/sub.go @@ -17,7 +17,7 @@ type SubQuery struct { Proxy string `form:"proxy" binding:""` Proxies []string `form:"-" binding:""` Refresh bool `form:"refresh,default=false" binding:""` - Template string `form:"templates" binding:""` + Template string `form:"template" binding:""` RuleProvider string `form:"ruleProvider" binding:""` RuleProviders []RuleProviderStruct `form:"-" binding:""` Rule string `form:"rule" binding:""`