Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local affine.js configuration not taken effect in docker compose mode #9237

Open
1 task done
tyde7 opened this issue Dec 21, 2024 · 1 comment
Open
1 task done

local affine.js configuration not taken effect in docker compose mode #9237

tyde7 opened this issue Dec 21, 2024 · 1 comment

Comments

@tyde7
Copy link

tyde7 commented Dec 21, 2024

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?

  • Yes

Relevant log output

No response

Anything else?

No response

@alienbob
Copy link

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.

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

No branches or pull requests

2 participants