plankanban / planka

The realtime kanban board for workgroups built with React and Redux.
https://planka.app
GNU Affero General Public License v3.0
7.98k stars 741 forks source link

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

Open tl211211211 opened 2 months ago

tl211211211 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 4 weeks ago

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