Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: latest main, can't get login page #497

Closed
1 of 2 tasks
tinola opened this issue Aug 17, 2024 · 3 comments · Fixed by #501
Closed
1 of 2 tasks

[Bug]: latest main, can't get login page #497

tinola opened this issue Aug 17, 2024 · 3 comments · Fixed by #501
Labels
bug Something isn't working

Comments

@tinola
Copy link
Contributor

tinola commented Aug 17, 2024

🐛 Describe the Bug

Hi :)

I did clean build of ztnet, but it seems something went wrong.
I'm still getting redirected to http://localhost:<port> instead of configured NEXTAUTH_URL in .env file:

My ztnet .env file:

DATABASE_URL=postgresql://postgres:[email protected]:5432/ztnet?schema=public
ZT_ADDR="http://127.0.0.1:9993"
ZT_SECRET="abcd_redacted"
NEXT_PUBLIC_SITE_NAME=ZTNET
NEXTAUTH_URL="https://ztnet.mydomain.pl:21xyz"
NEXTAUTH_SECRET="<redacted>"
TZ="Europe/Warsaw"
HOSTNAME=127.0.0.1

Before today's "git pull" and build I was able reach ztnet UI with URL: https://ztnet.mydomain.pl:21xyz/auth/login/
Now it seems to escape proxy and kick me off to URL: http://localhost:<port>/pl/auth/login

My ztnet user .cshrc in FreeBSD:

### for ztnet
setenv PRISMA_CLI_QUERY_ENGINE_TYPE "binary"
setenv PRISMA_QUERY_ENGINE_BINARY "/home/ztnet/ztnet-prisma-self/query-engine"
setenv PRISMA_FMT_BINARY "/home/ztnet/ztnet-prisma-self/prisma-fmt"
setenv PRISMA_SCHEMA_ENGINE_BINARY "/home/ztnet/ztnet-prisma-self/schema-engine"
setenv PRISMA_QUERY_ENGINE_LIBRARY "/home/ztnet/ztnet-prisma-self/libquery_engine.node"
setenv PORT <port other than 3000>
setenv HOSTNAME 127.0.0.1

I've recovered ztnet from backup, so I have working UI before your changes ;)

🔍 Steps to Reproduce

Please try in your vm running FreeBSD.

🔧 Deployment Type

  • Docker
  • Standalone

✨ Expected Behavior

No response

📋 ZTNET Logs

No response

🖼 Screenshots

No response

@sinamics
Copy link
Owner

I improved the locale redirects in ztnet.
This has allways been an issue when running the application tied to localhost and behind proxy, but it became more significant with the addition of translations to the authentication pages.

Try to build the main branch again and see if works now.

@tinola
Copy link
Contributor Author

tinola commented Aug 19, 2024

Thanks! Now it works OK. No problem with login, no redirect to localhost:port

By the way - some sort icons alignment behave strange after "created" column was removed...

sort_01

or

sort_02

@tinola
Copy link
Contributor Author

tinola commented Aug 20, 2024

Thx, sorting works fine now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants