mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #120] Set base url to serve behind a reverse proxy #102
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @metinsenturk on GitHub (May 24, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/120
Using pgbackweb with a reverse proxy like nginx need
BASE_URLso that application is aware that it is running under a web proxy and respects redirects likehttp://localhost/pgbackweb.My current setup in
nginx.conffile redirects http://localhost/pgbackweb to http://localhost/auth/create-first-user.However, I can see that app works if I manually go to http://localhost/pgbackweb/auth/create-first-user.
Can we add
BASE_URLas an environment variable?Thanks!
@eduardolat commented on GitHub (May 25, 2025):
I think all urls are expected to be relative to the root (/), not under a directory (/pgbackweb), i'll add the
BASE_URLenvironment variable that you suggested in a future releaseI'm out of time right now, but as soon as i can i'll continue adding this kind of features to the project