diff --git a/.env.example b/.env.example index 2896475..83e4b94 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,9 @@ # the authenticated flow to this host. BASE_URL=https://share.beckham.ai +# Source-repository link shown in the signed-in workspace sidebar. Leave blank to hide. +SOURCE_URL=https://github.com/dabeckham/beckham-share + # Session cookie signing key + database password — random, set by generate-secrets.sh. SECRET_KEY=CHANGE_ME DB_PASSWORD=CHANGE_ME diff --git a/app/config.py b/app/config.py index ca4cfe2..838b4dd 100644 --- a/app/config.py +++ b/app/config.py @@ -19,6 +19,8 @@ class Settings(BaseSettings): brand_domain: str = "beckham.ai" # Public origin the app is served from (used to build absolute share links). base_url: str = "https://share.beckham.ai" + # Source-repository link surfaced in the signed-in workspace. Set empty to hide. + source_url: str = "https://github.com/dabeckham/beckham-share" # Signs the session cookie. MUST be set to a long random value in prod. secret_key: str = "dev-insecure-change-me" diff --git a/app/static/css/styles.css b/app/static/css/styles.css index 6237b34..019939f 100644 --- a/app/static/css/styles.css +++ b/app/static/css/styles.css @@ -104,6 +104,7 @@ body { .side-link:hover { background: #f1f4f9; color: var(--ink); } .side-link.active { background: #eaf1ff; color: var(--blue); } .usage { margin-top: auto; color: var(--muted); font-size: 13px; padding: 12px; } +.source-link { font-size: 13px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); } .filespane { padding: 28px 32px; } .filespane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; } diff --git a/app/templates/app.html b/app/templates/app.html index f0d9c61..8af2514 100644 --- a/app/templates/app.html +++ b/app/templates/app.html @@ -13,6 +13,11 @@ All files