Summary
Setting FLUXER_PUBLIC_PORT in .env to something other than 80 prevents being able to access the admin page.
For example, if FLUXER_PUBLIC_PORT is set to 8080, Accessing
https://chat.example.com:8080/admin, attempts to load
https://chat.example.com/oauth2/ which fails to load.
Stuck showing "Starting Authentication..."
I've found a fix, I've changed the following in the docker-compose.yml, changing
admin:
<<: *fluxer-service
image: ${FLUXER_REGISTRY:-ghcr.io/${FLUXER_REGISTRY_OWNER:-fluxerapp}}/fluxer-admin:${FLUXER_IMAGE_TAG:-v1}
environment:
<<: *fluxer-env
FLUXER_ADMIN_HOST: 0.0.0.0
FLUXER_ADMIN_PORT: "8080"
FLUXER_ADMIN_BASE_PATH: /admin
FLUXER_API_ENDPOINT: http://api:8080
FLUXER_ADMIN_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}/admin
FLUXER_APP_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}
FLUXER_MEDIA_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}/media
FLUXER_STATIC_CDN_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}
FLUXER_ADMIN_OAUTH_REDIRECT_URI: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}/admin/oauth2_callback
depends_on:
api: {condition: service_healthy}
to
admin:
<<: *fluxer-service
image: ${FLUXER_REGISTRY:-ghcr.io/${FLUXER_REGISTRY_OWNER:-fluxerapp}}/fluxer-admin:${FLUXER_IMAGE_TAG:-v1}
environment:
<<: *fluxer-env
FLUXER_ADMIN_HOST: 0.0.0.0
FLUXER_ADMIN_PORT: "8080"
FLUXER_ADMIN_BASE_PATH: /admin
FLUXER_API_ENDPOINT: http://api:8080
FLUXER_ADMIN_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}/admin
FLUXER_APP_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}:${FLUXER_PUBLIC_PORT}
FLUXER_MEDIA_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}/media
FLUXER_STATIC_CDN_ENDPOINT: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}
FLUXER_ADMIN_OAUTH_REDIRECT_URI: ${FLUXER_PUBLIC_SCHEME:-https}://${FLUXER_DOMAIN}:${FLUXER_PUBLIC_PORT}/admin/oauth2_callback
depends_on:
api: {condition: service_healthy}
By adding ${FLUXER_PUBLIC_PORT} to botht he app endpoint and oauth redirect, the admin page appears to work normally.
Steps to reproduce
Follow instructions at
https://docs.fluxer.app/operator/get-started/, but when prompted to customize .env,
Set FLUXER_PUBLIC_PORT to something non-default like 8080.
After setup, attempt to access the admin page at
https://chat.example.com:8080/admin, and see it fails.
Environment
Fluxer on Arch Container running Docker.
3 comments
Comment by @Sinterdial
Deleted comment
Comment by @ajsnyde
647973850-291e4b07-e89a-4cf5-a7a5-5b7b7554dafb.png
1265×1022 | 257 kB
647974376-76f4628e-7637-40e7-a6f9-2bc833d817f6.png
2559×1014 | 639 kB
Comment by @naelstrof