Files
wehub-resource-sync bb5c75ce05
Component Security Validation / Security Audit (push) Has been cancelled
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:38:58 +08:00

36 lines
848 B
YAML

# Go API Service
# High-performance Go web service with PostgreSQL
services:
- type: web
name: go-api
runtime: go
plan: free
region: oregon
branch: main
autoDeploy: true
buildCommand: go build -o bin/app -ldflags="-s -w" .
startCommand: ./bin/app
healthCheckPath: /health
envVars:
- key: PORT
value: 10000
- key: ENVIRONMENT
value: production
- key: DATABASE_URL
fromDatabase:
name: postgres
property: connectionString
- key: JWT_SECRET
sync: false # User provides in Dashboard
- key: API_KEY
sync: false # User provides in Dashboard
databases:
- name: postgres
databaseName: go_api_production
user: go_api_user
plan: free
postgresMajorVersion: "15"
ipAllowList: [] # Internal access only