Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
91f9d4c7
Commit
91f9d4c7
authored
Jan 05, 2026
by
shaw
Browse files
Merge branch 'mike/deployment'
parents
a60dbb55
204190f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/admin/account_handler.go
View file @
91f9d4c7
...
...
@@ -354,7 +354,8 @@ func (h *AccountHandler) SyncFromCRS(c *gin.Context) {
SyncProxies
:
syncProxies
,
})
if
err
!=
nil
{
response
.
ErrorFrom
(
c
,
err
)
// Provide detailed error message for CRS sync failures
response
.
InternalError
(
c
,
"CRS sync failed: "
+
err
.
Error
())
return
}
...
...
deploy/docker-compose-test.yml
View file @
91f9d4c7
...
...
@@ -32,6 +32,8 @@ services:
volumes
:
# Data persistence (config.yaml will be auto-generated here)
-
sub2api_data:/app/data
# Mount custom config.yaml (optional, overrides auto-generated config)
-
./config.yaml:/app/data/config.yaml:ro
environment
:
# =======================================================================
# Auto Setup (REQUIRED for Docker deployment)
...
...
@@ -95,6 +97,12 @@ services:
-
GEMINI_OAUTH_CLIENT_SECRET=${GEMINI_OAUTH_CLIENT_SECRET:-}
-
GEMINI_OAUTH_SCOPES=${GEMINI_OAUTH_SCOPES:-}
-
GEMINI_QUOTA_POLICY=${GEMINI_QUOTA_POLICY:-}
# =======================================================================
# Security Configuration (URL Allowlist)
# =======================================================================
# Allow private IP addresses for CRS sync (for internal deployments)
-
SECURITY_URL_ALLOWLIST_ALLOW_PRIVATE_HOSTS=${SECURITY_URL_ALLOWLIST_ALLOW_PRIVATE_HOSTS:-true}
depends_on
:
postgres
:
condition
:
service_healthy
...
...
deploy/docker-compose.yml
View file @
91f9d4c7
...
...
@@ -28,6 +28,8 @@ services:
volumes
:
# Data persistence (config.yaml will be auto-generated here)
-
sub2api_data:/app/data
# Mount custom config.yaml (optional, overrides auto-generated config)
-
./config.yaml:/app/data/config.yaml:ro
environment
:
# =======================================================================
# Auto Setup (REQUIRED for Docker deployment)
...
...
@@ -93,9 +95,11 @@ services:
-
GEMINI_QUOTA_POLICY=${GEMINI_QUOTA_POLICY:-}
# =======================================================================
# Security Configuration
# Security Configuration
(URL Allowlist)
# =======================================================================
-
SECURITY_URL_ALLOWLIST_UPSTREAM_HOSTS=${SECURITY_URL_ALLOWLIST_UPSTREAM_HOSTS:-}
# Allow private IP addresses for CRS sync (for internal deployments)
-
SECURITY_URL_ALLOWLIST_ALLOW_PRIVATE_HOSTS=${SECURITY_URL_ALLOWLIST_ALLOW_PRIVATE_HOSTS:-false}
depends_on
:
postgres
:
condition
:
service_healthy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment