truemail-rb / truemail-rack-docker-image

Truemail rack docker image :whale:
https://truemail-rb.org/truemail-rack-docker-image
MIT License
26 stars 8 forks source link

[QUESTION] Issue with Truemail Docker Setup: Invalid Access Token Error #92

Closed Tanjohnson99 closed 7 months ago

Tanjohnson99 commented 7 months ago

Hello,

I'm currently trying to use Truemail with Docker and Portainer. I've set up the docker-compose.yml file as follows:

However, when accessing the web interface, I'm getting an "invalid truemail access token" error. I've double-checked the token, and it seems to be correct. Could you please provide guidance on how to resolve this issue?

Thank you.

bestwebua commented 7 months ago

Hi, @Tanjohnson99! Here is an example of docker-compose.yml:

# docker-compose.yml

version: "3.7"

services:
  truemail:
    image: truemail/truemail-rack:latest
    ports:
      - 9292:9292
    environment:
      VERIFIER_EMAIL: your_email@example.com
      ACCESS_TOKENS: your_token # here is your access token
    tty: true

And here is an example of http-request:

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: your_token" http://localhost:9292?email=some_email_to_verify@gmail.com

It works, please check out it.

Tanjohnson99 commented 7 months ago

Ok. I already have create with docker compose

# docker-compose.yml

version: "3.7"

services:
  truemail:
    image: truemail/truemail-rack:latest # for latest version you can use just truemail/truemail-rack:latest
    ports:
      - 9292:9292
    environment:
      VERIFIER_EMAIL: my email adress
      ACCESS_TOKENS: LGX8yu3obfRsHLOMb9reRzIe2Vfe4mFVQKsZBa3EslzA5X3M9EiD4E22A3MWvqfP
    tty: true

But the web interface show me this :

Captura de ecrã 2024-04-03 173814

Thanks

bestwebua commented 7 months ago

Ok. I already have create with docker compose

# docker-compose.yml

version: "3.7"

services:
  truemail:
    image: truemail/truemail-rack:latest # for latest version you can use just truemail/truemail-rack:latest
    ports:
      - 9292:9292
    environment:
      VERIFIER_EMAIL: my email adress
      ACCESS_TOKENS: LGX8yu3obfRsHLOMb9reRzIe2Vfe4mFVQKsZBa3EslzA5X3M9EiD4E22A3MWvqfP
    tty: true

But the web interface show me this :

Captura de ecrã 2024-04-03 173814

Thanks

@Tanjohnson99 Could you share your request data? It's just a part.

Your request should be as example below but with the different host name:

curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: LGX8yu3obfRsHLOMb9reRzIe2Vfe4mFVQKsZBa3EslzA5X3M9EiD4E22A3MWvqfP" http://localhost:9292?email=some_email_to_verify@gmail.com