-
Notifications
You must be signed in to change notification settings - Fork 203
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
About access unstract web from other computer #414
Comments
Hi @haluwong ,
This should be enough to get it running for a different host. Please try and let us know if it works for you. Also if possible it would be great if you can help with a new README on how to setup unstract for different host. |
I modified the corresponding points according to the prompts. The homepage can be accessed, but after logging in, it still jumps to http://frontend.unstract.localhost. |
I modified the host configuration in sample.proxy_overrides.yaml, but it still prompts that verification cannot be performed when logging in, and jumps back to the landing page. |
@dumbsheep1990 Hi can you confirm if the changes where made in
|
@ritwik-g I tried to following your suggestion to modify .env and labels for unstract-backend and unstract-frontend Can show the login page but cannot login. |
@haluwong , when you modified the code (backend/settings/dev.py), you will need to build containers from the local code. Which is acheivable passing Hope you have done this. In any case I don't think this is a CORS error. Can you also share
|
I downloaded the latest branch. Login page can show but will show NetworkError to fetch the source map But i can access http://unstract.certosa.com/static/js/main.12ab8275.js.map in my browser. Then, click login and input the username ,password and login and then it will redirect to first login page again. some js show NetworkError too but I can access it. I tried in both chrome and firefox Hope this information is useful for your troubleshooting |
@haluwong I think the issue is with traefik routing. From the response of login API(/api/v1/login) it looks like to be going to Frontend container instead of backend. Can you share the screenshot of |
@haluwong I tried this locally and noticed one thing. If you make change in So either delete |
@haluwong had any luck with the above? |
_unstract-proxy_logs_0.73.0_20240715.txt Attached with backend,frontend and proxy log for your reference. About unstract_proxy, it seems the providers file was mapped to a director instead. directory "proxy_overrides.aml" was created after docker-compose |
@haluwong Since you are using http, also set SESSION_COOKIE_SECURE to False in backend env. or use https. |
Hi @haluwong . Will check the logs. Mean while we have created a doc about this. https://docs.unstract.com/unstract_faq/networking/unstract_faq_networking Can you try following this and update if this works for you? |
I have noticed a similar issue with this.
Host On Server & Access On Desktop:
[Issue] On form submit it redirects to
[Issue] On form submit it redirects to
[Issue] System goes into a redirect loop between Can you provide any advice? |
After some Docker & DNS work, I was able to resolve this.
Stack is currently running on local server, accessible within network. |
Could you share more detail about it, please? |
Hi @dmnxprss , could you give us more details, please? |
unstract/backend/backend/settings/base.py Lines 89 to 90 in 7a8e2e4
This looks like to be the major problem. If anyone tries to run it in HTTP mode it might not work due to this config. @hari-kuriakose since our OSS version by default runs in HTTP mode I will try to make some changes with this and raise a PR. We might need to update the document as well |
@ritwik-g Agree, they could be |
This issue of hardcoding the inter-dependent URLs makes the whole stack unusable in a realistic open-source setting, and it seems to be pushing us to use the cloud version only. |
It seems the webUI can only access through http://frontend.unstract.localhost/ which point to 127.0.0.1
I'm trying to setup nginx to reverse proxy to it through another URL and set host header to frontend.unstract.localhost.
Can see the login screen but will redirect back to http://frontend.unstract.localhost/!!!
Is there anyway to setup with another hostname? Please advise?
Thanks,
Halu
The text was updated successfully, but these errors were encountered: