local affine.js configuration not taken effect in docker compose mode
What happened?
Deploy docker using .github/deployment/self-host/compose.yaml. Confirmed local affine.js is mounted in docker container. None of the configurations in local affine.js file has taken effect.
My affine.js
AFFiNE.server.port = 3011;
AFFiNE.serverName = 'Octopus'
After I wrote this configuration in /app/dist/config , everything works. But I thought I shouldn't write everything here?
Distribution version
Linux
What browsers are you seeing the problem on if you're using web version?
Chrome, Microsoft Edge
Are you self-hosting?
- [X] Yes
Relevant log output
No response
Anything else?
No response
Ah... I was hitting this bug and did not understand. After mounting my local affine.js to /app/dist/config/affine.js the "Continue with OIDC" text finally appeared in the login dialog.
I still need to figure out what the correct redirect/callback URL is for AFFiNE OIDC, because now I am getting redirected to ${AFFINE_SERVER_EXTERNAL_URL}redirect-proxy?redirect_uri=https%3A%2F%2Fapp.affine.pro%2Foauth%2Flogin%3Fprovider%3DOIDC which is not right.