Comments (7)
The current stable uses next-auth, and if NEXTAUTH_URL
is not set it will fallback to http://localhost:3000
.
- put
NEXTAUTH_URL=http://localhost:3010
to yourenv
- add
NEXTAUTH_URL
variable to compose file:
environment:
- NEXTAUTH_URL=${NEXTAUTH_URL}
from affine.
Your configuration is perfectly correct. It's strange the signin link is in wrong format.
I will take a look on the code, and catch you up with any update.
from affine.
can i have a look on how you setup the host environments?
from affine.
@forehalo Yes, sure. I used a .env
file and it looks like this:
[email protected]
AFFINE_ADMIN_PASSWORD=password
AFFINE_SERVER_HOST=mydomain.dev
AFFINE_SERVER_PORT=3010
AFFINE_SERVER_HTTPS=true
MAILER_HOST=smtp.gmail.com
MAILER_PORT=587
[email protected]
MAILER_PASSWORD=password
I also changed my compose file to look like this for the affine container environment:
environment:
- NODE_OPTIONS="--import=./scripts/register.js"
- AFFINE_CONFIG_PATH=/root/.affine/config
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
- NODE_ENV=production
- AFFINE_ADMIN_EMAIL=${AFFINE_ADMIN_EMAIL}
- AFFINE_ADMIN_PASSWORD=${AFFINE_ADMIN_PASSWORD}
- AFFINE_SERVER_HOST=${AFFINE_SERVER_HOST}
- AFFINE_SERVER_PORT=${AFFINE_SERVER_PORT}
- AFFINE_SERVER_HTTPS=${AFFINE_SERVER_HTTPS}
- MAILER_HOST=${MAILER_HOST}
- MAILER_PORT=${MAILER_PORT}
- MAILER_USER=${MAILER_USER}
- MAILER_PASSWORD=${MAILER_PASSWORD}
from affine.
Hello, same problem here.
Same config as him, mailer Gmail. In docker compose.
from affine.
Issue Status: 💡 Open
💡 Open
We want to implement the fix or feature in the near future. We can’t promise it will appear in the next public release, but it’s on our short list.
This is an automatic reply by the bot.
from affine.
The current stable uses next-auth, and if
NEXTAUTH_URL
is not set it will fallback tohttp://localhost:3000
.
- put
NEXTAUTH_URL=http://localhost:3010
to yourenv
- add
NEXTAUTH_URL
variable to compose file:environment: - NEXTAUTH_URL=${NEXTAUTH_URL}
It worked perfectly for me. Thanks !
from affine.
Related Issues (20)
- Adding doc template when creating a new doc HOT 3
- Failed to upload image! crypto.subtle is undefined HOT 14
- The Calendar Day in the Journal View Doesn't Correspond to the Date in the Journal Page HOT 4
- Cannot change password on self-hosted affine installation HOT 2
- Line cannot be saved HOT 3
- Self Hosted WorkSpace Avatar HOT 5
- Urgent Security Vulnerability Discovered: Unsecured GraphQL Access HOT 3
- windows controls missing in all page route HOT 2
- Reference to other Blocks HOT 8
- Custom font families HOT 3
- Emails sent have a non-usable action button HOT 4
- Shortcut ⌥+S stands for "ś" in Polish HOT 3
- Images that support markdown syntax HOT 3
- Can't login when upgrading to beta HOT 7
- Create Collection cannot be exited with ESC HOT 1
- TypeError: Cannot read properties of undefined (reading 'history') HOT 1
- error: always show 5xx wrong HOT 4
- React ErrorBoundary TypeError: Cannot read properties of undefined (reading 'match') HOT 2
- Self-hosted: add config for turn off signup feature HOT 5
- selfhost: Upgrade to 0.13 stable causes unhealthy postgres HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affine.