Skip to content

feat: add BILIBILI_SESSION_ENCRYPTION_KEY to compose and environment templates - #291

Merged
Priveetee merged 4 commits into
TypeType-Video:devfrom
Aquarius-Situla:feat/bilibili-session-encryption-env
Sep 26, 2026
Merged

Priveetee merged 4 commits into
TypeType-Video:devfrom
Aquarius-Situla:feat/bilibili-session-encryption-env

Conversation

@Aquarius-Situla

Copy link
Copy Markdown
Contributor

What changed

  • Added BILIBILI_SESSION_ENCRYPTION_KEY placeholder to .env.example.
  • Exposed BILIBILI_SESSION_ENCRYPTION_KEY: ${BILIBILI_SESSION_ENCRYPTION_KEY:-} under the typetype-server and typetype-init services in docker-compose.yml and docker-compose.dev.yml.

Why the change is needed

In TypeType Beta (1.8.2-beta), BiliBili QR code authentication and session encryption were introduced in TypeType-Server (BiliBiliSessionService). However, the compose stacks and environment template did not pass BILIBILI_SESSION_ENCRYPTION_KEY to the server container, preventing self-hosters from configuring the encryption key for Bilibili sessions out of the box.

Which issue it addresses

Addresses #287 (central stack orchestration part).

How it was tested

  • Verified Compose syntax and environment variable expansion on Linux with Docker Compose v2.
  • Deployed on a live self-hosted beta instance with a generated encryption key, successfully connecting and encrypting a BiliBili account session in PostgreSQL.

Whether another TypeType component must change with it

No other changes required; TypeType-Server already supports BILIBILI_SESSION_ENCRYPTION_KEY.

@Priveetee

Priveetee commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Hi @Aquarius-Situla ,

I pushed a commit to fix the Compose healthcheck and harden the BiliBili session key setup. The key is now generated automatically during bootstrap instead of leaving the placeholder in place, and the unused typetype-init wiring was removed.

The validate-pr CI job passes and the stack validation is green.

Thanks for contributing to TypeType!

@Priveetee
Priveetee merged commit c773002 into TypeType-Video:dev Sep 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants