ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6.11k stars 280 forks source link

Issues logging in from local DNS address #2166

Open ufondu88 opened 3 days ago

ufondu88 commented 3 days ago

Environment

Docker

Version

0.15.6

Describe the problem

I have added Homarr to my local DNS records in Pihole and I route the traffic via Nginx Proxy Manager to the container that runs my Homarr instance. I am able to authenticate with Homarr if I enter the IP address directly in the address bar, but when I try to authenticate via the local DNS address, the request times out and I get the error in the deverloper console

Logs

Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

Context

image

Please tick the boxes

github-actions[bot] commented 3 days ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

SeDemal commented 3 days ago

You are running on an unsigned certificate. As shown on the top left by your browser. I assume you might need something like NODE_TLS_REJECT_UNAUTHORIZED=0 and maybe NEXTAUTH_URL="https://homarr.home" added to your environment variables.

ufondu88 commented 3 days ago

Those are not valid Homarr environment variables as seen here https://homarr.dev/docs/advanced/configuration/environment-variables

SeDemal commented 3 days ago

Yes that would be because they are not homarr environment variables, they are for the dependency we use, nextauth.

ufondu88 commented 2 days ago

I added those env vars to the docker compose file, but I am still not able to authenticate when the address is a local DNS address

SeDemal commented 13 hours ago

Could you share your logs? the ones from homarr, not the browser.