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]: Open white screen after docker deployment #844

Open
tl211211211 opened this issue Aug 12, 2024 · 4 comments
Open

[Bug]: Open white screen after docker deployment #844

tl211211211 opened this issue Aug 12, 2024 · 4 comments

Comments

@tl211211211
Copy link

Where is the problem occurring?

None

What browsers are you seeing the problem on?

No response

Current behaviour

After docker local intranet deployment through port forwarding mapping to the public network can not be used normally, open the white screen. The main reason is that the following two files get the address for the intranet address.
http://localhost:3000/static/js/main.780b7d6d.js
http://localhost:3000/static/css/main.af55c8d0.css

Desired behaviour

No response

Steps to reproduce

Deploying with docker in an intranet environment
Use nat port mapping to map port 3000 on the intranet server to port 63000 on the public network.
Using public address:63000 to access opens a white screen

Other information

No response

@meltyshev
Copy link
Member

Hi! It looks like you haven't specified BASE_URL, or you've set it to BASE_URL=http://localhost:3000. The BASE_URL should match the exact address you use in your browser to connect to Planka. In your case, it should be BASE_URL=http://PUBLIC_ADDRESS:63000.

@tl211211211
Copy link
Author

tl211211211 commented Aug 12, 2024

Hi! It looks like you haven't specified BASE_URL, or you've set it to BASE_URL=http://localhost:3000. The BASE_URL should match the exact address you use in your browser to connect to Planka. In your case, it should be BASE_URL=http://PUBLIC_ADDRESS:63000.

No, I may not have made myself clear, I set BASE_URL=172.16.1.22:3000,and mapped the intranet server port to the public address 63000 via port mapping.
When I use http://172.16.1.22:3000 on the intranet it is accessed fine, but when I use public:63000 it is not accessed properly. Those two files get the address as local IP.
http://172.16.1.22:3000/static/js/main.780b7d6d.js
http://172.16.1.22:3000/static/css/main.af55c8d0.css

@meltyshev
Copy link
Member

meltyshev commented Aug 12, 2024

Ah, got it. Unfortunately, we don't currently support specifying multiple addresses. However, I think this feature should be added, I'll try to come up with something.

Related: #481, #530

@ashap5
Copy link

ashap5 commented Oct 6, 2024

Looking forward to this feature. Any idea when it might be available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants