mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 17:26:03 +03:00
[GH-ISSUE #3060] [bug]: Not work auth on self-hosted #998
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#998
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 @eljump on GitHub (May 16, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3060
Is there an existing issue for this?
Current behavior
Hi again, i repeat this issue, because it was closed, but not solved
https://github.com/hoppscotch/hoppscotch/issues/3016
I try to switch on release/2023.4.2 branch for testing,
Yes, there is no 404 screen any more, but the authorization still fails. It's just redirect on mainpage.
You can look result here:
http://hoppscotch-webest.ru:3000/
Steps to reproduce
Just follow docs
Environment
Production
Version
Self-hosted
@kzachetovb2b commented on GitHub (May 17, 2023):
Have the same issue on selfhosted [2023.4.3]
@AndrewBastin commented on GitHub (May 17, 2023):
@kzachetovb2b @eljump can you guys provide server logs for the
hoppscotch-backendservice running on the background.@eljump commented on GitHub (May 17, 2023):
How can i do it?
@AndrewBastin commented on GitHub (May 17, 2023):
@eljump When you run the backend server (:3170 one), it will start outputting some text on your console, with the console open, try logging in and see if and send the logs up to that point. That way we can see if it is an actual issue.
@kzachetovb2b commented on GitHub (May 17, 2023):
@AndrewBastin in my case logs are empty
in
docker logs hoppscotch-backendi see only:is there any way to run it in debug mode?
@balub commented on GitHub (May 17, 2023):
@eljump just want to confirm was the migration run by prisma ?
@balub commented on GitHub (May 17, 2023):
@eljump Your domain is currently http can you issue a TLS certificate and make it https, we use cookies for auth and they are secure cookies.
@eljump commented on GitHub (May 18, 2023):
@balub
yes, migrations was run
i will try with TLS certificate and post the results here
@AndrewBastin
Okey, i will try
@eljump commented on GitHub (May 18, 2023):
@AndrewBastin
There is logs on start server
While logging in to the client through a browser and trying to authorize, I only get responses like this
@eljump commented on GitHub (May 23, 2023):
@balub
Thank you for the advice. We have added an SSL certificate, and the authorization is now working.
We are using Nginx. We have set up proxying as follows: the main domain on port 3000, port 3100 to 3101, and port 3170 to 3171. Consequently, we also updated the port information in the .env file and rebuilt the application. Instead of ports, subdomains could have been used.
@liyasthomas
It might be worth mentioning in the documentation that authorization only works with HTTPS.
Thanks a lot for every one
P. s.: i wait this update on main branch)))
@kzachetovb2b commented on GitHub (Jun 9, 2023):
@eljump Hello! Could you please share with your configuration of nginx and .env file that works for you?
i am not experienced in nginx configuration and my config is not working , i got "network error" while sending magic link, it can not get correct response from https://hoppscotch.mydomain:3171/v1/auth/signin
{"statusCode":404,"message":"Cannot GET /v1/auth/signin","error":"Not Found"}
my nginx conf is :
env:
@eljump commented on GitHub (Jun 14, 2023):
@kzachetovb2b

Hi, we do the proxies in nginx, and auth from other ports, this work for us, look:
We do three confs for diffrent ports:
hopp.conf:
hopp3100.conf
hopp3170.conf
so in .env we use domain, and domain with ports 3101, 3171
smth like this
Of couse, instead of ports, you can use subdomains
@kzachetovb2b commented on GitHub (Jun 16, 2023):
@eljump Thanks a lot, mate! Really appreciate your help! it works for me as well
@dreamwhite commented on GitHub (Jul 21, 2023):
Does this work also when using
docker-compose.ymlbundled with the repo?