Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Let's say my internet is down and I don't have a local DNS server. How do I connect to VoidAuth on my local network?

To prefix:

  • VoidAuth IP: 192.168.68.107
  • Caddy IP: 192.168.68.97

Setting APP_URL to VoidAuths's local IP (i.e., http://192.168.68.107) produces an SSL error in browser.

I tried to proxy VoidAuth through Caddy to strip the CSP and HSTS headers:

:80 {
        @internal remote_ip 192.168.68.0/24

        handle @internal {
                reverse_proxy @internal 192.168.68.107:3000

                header @internal {
                        -Content-Security-Policy
                        -Strict-Transport-Security
                }
        }
}

This allows me to actually load the page, but I get the "Could not create session" error in VoidAuth.

I also see this message in the logs:

voidauth  | {"level":"debug","message":"APP_URL: 'http://192.168.68.97' appears to be a private DNS zone.","timestamp":1776527926442}
voidauth  | {"level":"debug","message":"Session Domain: '68.97'","timestamp":1776527926443}

Obviously there's no domain to work with here. I tried setting SESSION_DOMAIN to empty string and the local IP, but no dice.

Is there any way around this?

You must be logged in to vote

Replies: 1 comment · 2 replies

Comment options

Looks like there is a bug in the session domain calculation, the 'base domain' of an IP address should be the address and not the last two digits. I will work on a fix for that, and it should allow you to set the APP_URL to an IP address.

You must be logged in to vote
2 replies
@notquitenothing
Comment options

You should be able to set the APP_URL to an IP Address now after the v1.12.0 release.

@EncryptedCurse
Comment options

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.