|
I'm running As far as I can tell, I configured the app and provider in authentik properly and entered the proper values into adventure log. I'm not sure if this is the error I'm encountering - https://adventurelog.app/docs/configuration/social_auth/authentik.html#_404-error-when-logging-in. If so, I'm not sure how to route This is my compose file services:
web:
image: ghcr.io/seanmorley15/adventurelog:v0.13.0
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
- SITE_URL=${SITE_URL}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- PGHOST=db
- POSTGRES_DB=database
- POSTGRES_USER=adventure
- DEBUG=${DEBUG}
- DISABLE_REGISTRATION=${DISABLE_REGISTRATION}
- EMAIL_BACKEND=${EMAIL_BACKEND}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_USE_TLS=${EMAIL_USE_TLS}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_USE_SSL=${EMAIL_USE_SSL}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
- DEFAULT_FROM_EMAIL=${DEFAULT_FROM_EMAIL}
ports:
- ${PROXY_PORT}:80
healthcheck:
test:
- "CMD-SHELL"
- "python3 -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:80/health')\""
interval: 30s
timeout: 5s
retries: 5
start_period: 120s
volumes:
- ${MEDIA_VOLUME}:/code/media/
db:
image: postgis/postgis:16-3.5
restart: unless-stopped
environment:
- POSTGRES_DB=database
- POSTGRES_USER=adventure
- POSTGRES_PASSWORD=${DB_PASSWORD}
healthcheck:
test:
- "CMD-SHELL"
- "pg_isready -U adventure -d database"
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- ${DB_VOLUME}:/var/lib/postgresql/data/@seanmorley15 Is the one container, one port deployment compatible with authentik? Thank you, |
Replies: 1 comment 2 replies
|
Yes, the one-container / one-port deployment is compatible with Authentik. You do not need a separate backend port exposed publicly as long as your public URL routes The error you are seeing is earlier than the 404 case in the docs. Authentik is rejecting the OAuth request because the I would check these three things first:
SITE_URL=https://adventure.example.com
If your regex still says
{
"server_url": "https://auth.example.com/application/o/adventurelog/"
}The If matching those URLs fixes it, please mark the answer so the Authentik redirect-vs-routing distinction is easier to find. |
I gave https://integrations.goauthentik.io/miscellaneous/adventurelog/ a closer read. I think what I missed when I created this post was
Though I could have also missed something else the first time around but everything is working now!