Code Monkey home page Code Monkey logo

Comments (7)

fundon avatar fundon commented on September 23, 2024 4

@yurisasc @Jycreyn

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 your env
  • add NEXTAUTH_URL variable to compose file:
  environment:
     - NEXTAUTH_URL=${NEXTAUTH_URL}

from affine.

forehalo avatar forehalo commented on September 23, 2024 2

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.

forehalo avatar forehalo commented on September 23, 2024

can i have a look on how you setup the host environments?

from affine.

yurisasc avatar yurisasc commented on September 23, 2024

@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.

Jycreyn avatar Jycreyn commented on September 23, 2024

Hello, same problem here.

Same config as him, mailer Gmail. In docker compose.

from affine.

affine-issue-bot avatar affine-issue-bot commented on September 23, 2024

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.

Jycreyn avatar Jycreyn commented on September 23, 2024

@yurisasc @Jycreyn

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 your env
  • add NEXTAUTH_URL variable to compose file:
  environment:
     - NEXTAUTH_URL=${NEXTAUTH_URL}

It worked perfectly for me. Thanks !

from affine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.