Subdirectory App Url #115

Closed
opened 2025-09-07 13:48:14 -05:00 by notquitenothing · 1 comment
notquitenothing commented 2025-09-07 13:48:14 -05:00 (Migrated from github.com)

There should be a way to host VoidAuth on a subpath (ex. https://example.com/voidauth) instead of a subdomain (ex. https://voidauth.example.com).

Describe the solution you'd like:

It should be possible to host on a subpath by configuring my reverse proxy correctly, and including the subpath in the APP_URL environment variable. There should also be at least a few examples in the docs for reverse proxy configuration.

Describe alternatives you've considered:

While I don't mind hosting VoidAuth as a subdomain, it should be possible to use a subpath too.

### Is your feature request related to a problem? Please describe: There should be a way to host VoidAuth on a subpath (ex. https://example.com/voidauth) instead of a subdomain (ex. https://voidauth.example.com). ### Describe the solution you'd like: It should be possible to host on a subpath by configuring my reverse proxy correctly, and including the subpath in the APP_URL environment variable. There should also be at least a few examples in the docs for reverse proxy configuration. ### Describe alternatives you've considered: While I don't mind hosting VoidAuth as a subdomain, it should be possible to use a subpath too.
notquitenothing commented 2025-09-07 15:30:39 -05:00 (Migrated from github.com)

The node-oidc-provider library I use for OIDC does use the HOST header for some interaction/resume logic, so that header cannot be overwritten. That means that the express app will need to be aware of the subdirectory when mounting all of the endpoints. I should be able to find it from the APP_URL environment variable

The [node-oidc-provider](https://github.com/panva/node-oidc-provider) library I use for OIDC does use the HOST header for some interaction/resume logic, so that header cannot be overwritten. That means that the express app will need to be aware of the subdirectory when mounting all of the endpoints. I should be able to find it from the APP_URL environment variable
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adam/gate#115
No description provided.