mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #4926] [bug]: Admin and backend does not connect when using subpaths in AIO container #1857
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1857
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 @Tabinka on GitHub (Mar 21, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4926
Is there an existing issue for this?
Current behavior
Hi,
I think this issue have two sides for my case.
I am using docker AIO container behind Nginx proxy server. Well right now it works half to half.
When subpath based access is disabled, front-end is working fine through web browser, but /admin is throwing an error with connecting to backend and I cannot acces my instance through desktop app.
When subpath based access is enabled, on front-end providers for logging in (in this case email) does not load.
Did I miss something or is it a known bug? I saw something similiar in this issue: https://github.com/hoppscotch/hoppscotch/issues/3435
But it does not apply to my case entirely.
Steps to reproduce
This shows when accessing https://hoppscotch.domain.com/admin

This shows browser console on both https://hoppscotch.domain.com even though I am able to log in and use it and https://hoppscotch.domain.com/admin (subpath mode is not enabled):
When subpath is enabled I cannot log in with email provider:
Logs and Screenshots
Environment
Production
Hoppscotch Version
Self-hosted
Interceptor
Browser - Web App
Browsers Affected
Not browser-specific
Operating System
Other (specify in additional info)
Additional Information
Docker version 23.0.1, build a5ee5b1
nginx version: nginx/1.24.0
Container is running in stack.
Snippet of docker-compose.yml:
.env file:
Nginx Proxy config:
@Stephen-PP commented on GitHub (Mar 23, 2025):
@Tabinka I don't know if you've resolved this, but I was able to fix this by prepending /backend to all URLs.
For example:
@balub commented on GitHub (Mar 24, 2025):
Hey @Tabinka if
ENABLE_SUBPATH_BASED_ACCESSistruethen you access the backend using<URL>/backend. Try replacingVITE_BACKEND_GQL_URL=https://hoppscotch.domain.com/graphqlwithVITE_BACKEND_GQL_URL=https://hoppscotch.domain.com/backend/graphqland see if you can access the backend.and try adding the code below to your nginx config.
@Tabinka commented on GitHub (Mar 25, 2025):
Thank you guys a lot! This worked!