Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Add support for NEXTAUTH_URL_INTERNAL` option #750

Closed
wants to merge 3 commits into from
Closed

♻️ Add support for NEXTAUTH_URL_INTERNAL` option #750

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 12, 2022

  • Update packages/dashboard/src/env/schema.mjs
  • Add NEXTAUTH_URL_INTERNAL to the .env
  • Update instructions and links appropriately.

This update will allow people to load the dashboard from the public IP and the internal IP. This way if they are hosting on their own machines they can have access it without having to use a different system on a different network.

With this there are two connection IPs. There is the public one accessible by others and the Internal IP only accessible from the host machine.

Both work perfectly with this update. Naturally though with this method if you want to access it form a seperate machine on the same network you will need to change the NEXTAUTH_URL_INTERNAL="http://0.0.0.0:3000" to NEXTAUTH_URL_INTERNAL="http://<private_ip>:3000" as localhost would not work for that.

For instance if your private IP was 192.168.0.29 the NEXTAUTH_URL_INTERNAL flag would need to be set to NEXTAUTH_URL_INTERNAL="http://192.168.0.29:3000"

Naturally you can see a description of this in the issue linked below:

Nimbi added 2 commits September 12, 2022 11:44
 * Add `NEXTAUTH_URL_INTERNAL` to the `.env`
 * Update instructions and links appropriately.
@ghost ghost changed the title ♻️ Update README ♻️ Add support for NEXTAUTH_URL_INTERNAL` option Sep 12, 2022
@ghost ghost closed this Sep 12, 2022
@ghost
Copy link
Author

ghost commented Sep 12, 2022

Not loading it as intended. Will need to do some more tweaks before this is ready to be added.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants