URL and origin not working #77

Closed
opened 2025-05-20 00:44:27 +02:00 by Watever · 4 comments

Hi,
It's first time I set this docker on. I installed using unraid app docker, but I don't think it would make any difference.
I am unable to create set because it always says my socket is disconnected.

No matter what I set in the parameter I can't get it to work.

I tried the default IP of the app : http://192.168.99.181:3333/
(When I click on it in the log, I can access my app).
I also have NGINX with cloudflare under my main domain. I set it like that first.
https://lego.mydomainname.something/
With http or https
without success. I get theses in the logs.

[2025-05-19 18:37:10,795] WARNING - Not found: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. (path: /static/minifigs/nil_mf.jpg) [2025-05-19 18:37:10,797] WARNING - Not found: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. (path: /static/parts/nil.jpg) http://192.168.99.181:3333 is not an accepted origin. (further occurrences of this error will be logged with level INFO) [2025-05-19 18:37:34,451] ERROR - http://192.168.99.181:3333 is not an accepted origin. (further occurrences of this error will be logged with level INFO)

Hi, It's first time I set this docker on. I installed using unraid app docker, but I don't think it would make any difference. I am unable to create set because it always says my socket is disconnected. No matter what I set in the parameter I can't get it to work. I tried the default IP of the app : http://192.168.99.181:3333/ (When I click on it in the log, I can access my app). I also have NGINX with cloudflare under my main domain. I set it like that first. https://lego.mydomainname.something/ With http or https without success. I get theses in the logs. `[2025-05-19 18:37:10,795] WARNING - Not found: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. (path: /static/minifigs/nil_mf.jpg) [2025-05-19 18:37:10,797] WARNING - Not found: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. (path: /static/parts/nil.jpg) http://192.168.99.181:3333 is not an accepted origin. (further occurrences of this error will be logged with level INFO) [2025-05-19 18:37:34,451] ERROR - http://192.168.99.181:3333 is not an accepted origin. (further occurrences of this error will be logged with level INFO)`

Set your BK_DOMAIN_NAME variable to exactly what the URL is that you are using to access your application. Unfortunately, I haven't found a way to access it both locally and externally and not get the socket error.

Set your BK_DOMAIN_NAME variable to exactly what the URL is that you are using to access your application. Unfortunately, I haven't found a way to access it both locally and externally and not get the socket error.
Owner

As @deadbattery says, BK_DOMAIN_NAME needs to be set.

To access it both locally and externally, use the domain name both places. Your router should be able to resolve your external domain name internally.

As @deadbattery says, BK_DOMAIN_NAME needs to be set. To access it both locally and externally, use the domain name both places. Your router should be able to resolve your external domain name internally.
Contributor

You can not set it but it won't enforce any CORS on the app, or you can set it to * (which is the same, set but allowing every origin)

You can not set it but it won't enforce any CORS on the app, or you can set it to `*` (which is the same, set but allowing every origin)
FrederikBaerentsen added the Kind/Bug label 2025-09-14 11:40:36 +02:00
Owner

Should be fixed with c71667cd41. If not, feel free to reopen.

Should be fixed with c71667cd41. If not, feel free to reopen.
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FrederikBaerentsen/BrickTracker#77