Switch CDN to S3-compatible Ceph RadosGW (AWSSDK.S3)

Replace custom HttpCdnClient (proprietary upload API) with S3CdnClient
backed by AWSSDK.S3 using ForcePathStyle for Ceph RadosGW compatibility.
CdnOptions gains EndpointUrl/AccessKey/SecretKey/BucketName; removes
UploadBaseUrl/ApiKey. K8s deployments and secrets template updated to
match new config keys.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-02-27 00:57:15 -05:00
co-authored by Claude Happy
parent b442ed3d9c
commit b6ac58bada
9 changed files with 126 additions and 99 deletions
+10 -8
View File
@@ -33,14 +33,16 @@ In your Gitea repository → Settings → Secrets, add:
## Secrets Reference
| Secret Name | Key | Used By | Notes |
|--------------------|----------------------------|-----------------|-------------------------------------------|
| sor-app-secrets | ConnectionStrings__Default | host + admin | Postgres connection string |
| sor-app-secrets | Cdn__PublicBaseUrl | host + admin | e.g. https://cdn.aeternalisgames.com |
| sor-app-secrets | Cdn__UploadBaseUrl | host + admin | CDN upload endpoint |
| sor-app-secrets | Cdn__ApiKey | host + admin | CDN API key |
| redis-credentials | connection-string | host only | **Already exists** in stone-server ns |
| harbor-credentials | .dockerconfigjson | both pods | Harbor image pull secret |
| Secret Name | Key | Used By | Notes |
|--------------------|----------------------------|-----------------|-------------------------------------------------|
| sor-app-secrets | ConnectionStrings__Default | host + admin | Postgres connection string |
| sor-app-secrets | Cdn__PublicBaseUrl | host + admin | e.g. https://cdn.aeternalisgames.com |
| sor-app-secrets | Cdn__EndpointUrl | host + admin | Ceph RadosGW endpoint, e.g. http://172.10.1.60:7480 |
| sor-app-secrets | Cdn__AccessKey | host + admin | S3 access key ID |
| sor-app-secrets | Cdn__SecretKey | host + admin | S3 secret access key |
| sor-app-secrets | Cdn__BucketName | host + admin | S3 bucket name, e.g. sor-assets |
| redis-credentials | connection-string | host only | **Already exists** in stone-server ns |
| harbor-credentials | .dockerconfigjson | both pods | Harbor image pull secret |
---
+7 -3
View File
@@ -9,7 +9,11 @@ stringData:
# Format: Host=HOST;Port=5432;Database=SOR;Username=USER;Password=PASSWORD;
ConnectionStrings__Default: "Host=172.10.1.127;Port=5432;Database=SOR;Username=SOR-DBA;Password=CHANGEME"
# CDN — public URL served to clients, upload endpoint, and API key.
# CDN (Ceph RadosGW S3-compatible).
# PublicBaseUrl: the public-facing URL prefix returned to clients for asset links.
# EndpointUrl: internal S3 endpoint (e.g. http://172.10.1.60:7480).
Cdn__PublicBaseUrl: "https://CHANGEME"
Cdn__UploadBaseUrl: "https://CHANGEME"
Cdn__ApiKey: "CHANGEME"
Cdn__EndpointUrl: "http://CHANGEME:7480"
Cdn__AccessKey: "CHANGEME"
Cdn__SecretKey: "CHANGEME"
Cdn__BucketName: "sor-assets"