Monorepo for Tangled
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/config: add SitesConfig with TANGLED_SITES_DOMAIN

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>

+18 -4
+18 -4
appview/config/config.go
··· 89 89 AdminSecret string `env:"ADMIN_SECRET"` 90 90 } 91 91 92 + type R2Config struct { 93 + AccessKeyID string `env:"ACCESS_KEY_ID"` 94 + SecretAccessKey string `env:"SECRET_ACCESS_KEY"` 95 + Bucket string `env:"BUCKET, default=tangled-pages"` 96 + } 97 + 92 98 type Cloudflare struct { 93 - ApiToken string `env:"API_TOKEN"` 94 - ZoneId string `env:"ZONE_ID"` 95 - TurnstileSiteKey string `env:"TURNSTILE_SITE_KEY"` 96 - TurnstileSecretKey string `env:"TURNSTILE_SECRET_KEY"` 99 + ApiToken string `env:"API_TOKEN"` 100 + ZoneId string `env:"ZONE_ID"` 101 + AccountID string `env:"ACCOUNT_ID"` 102 + KVNamespaceID string `env:"KV_NAMESPACE_ID"` 103 + TurnstileSiteKey string `env:"TURNSTILE_SITE_KEY"` 104 + TurnstileSecretKey string `env:"TURNSTILE_SECRET_KEY"` 105 + R2 R2Config `env:",prefix=R2_"` 106 + } 107 + 108 + type SitesConfig struct { 109 + Domain string `env:"DOMAIN, default=tngl.page"` 97 110 } 98 111 99 112 type LabelConfig struct { ··· 135 148 Cloudflare Cloudflare `env:",prefix=TANGLED_CLOUDFLARE_"` 136 149 Label LabelConfig `env:",prefix=TANGLED_LABEL_"` 137 150 Bluesky BlueskyConfig `env:",prefix=TANGLED_BLUESKY_"` 151 + Sites SitesConfig `env:",prefix=TANGLED_SITES_"` 138 152 } 139 153 140 154 func LoadConfig(ctx context.Context) (*Config, error) {