When hosting on an alternate port, the api URLS don't include the proper port

33 views
Skip to first unread message

geof...@gmail.com

unread,
Nov 3, 2023, 2:21:30 PM11/3/23
to Review Board Community
My 1st attempt at setting up ReviewBoard via docker, I tried to host on a non-standard port http://ourdomain.com:8900

I configured nginx apropriately, and set the port in the Admin UI.  This allowed the website to work propelry.  However, when accessing http://ourdomain.com:8900/api all of the reported URLs were listed as: http://ourdomain.com/api/... (i.e.e the port number was dropped).  This resulted in rbtools being unable to properly interact with the server.  I also tried  intializing with 'rb-site install --web-server-port 8900' but it made no difference.

I have since moved on to using a subdir instead, and am making progress on our evaluation (with code built from the release-6.x branch), so this is no longer affecting me.  But I thought I would report it.

David Trowbridge

unread,
Nov 3, 2023, 2:24:02 PM11/3/23
to revie...@googlegroups.com
Did you set the "server name" in the general settings to include the port number?

David

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/8827c0d2-c227-4183-ac1e-5198c0561b46n%40googlegroups.com.

geof...@gmail.com

unread,
Nov 3, 2023, 3:25:10 PM11/3/23
to Review Board Community
yes.  Without that I couldn't use the website at all.  It did not apply properly to the json returned by the API though.

min cai

unread,
Nov 6, 2023, 3:25:04 AM11/6/23
to Review Board Community
I'm having the same issue ,and my shipit and add comment is error.the log show as fllow:
4.png

David Trowbridge

unread,
Nov 6, 2023, 12:48:25 PM11/6/23
to revie...@googlegroups.com
One thing that may be the problem is the nginx configuration not sending the correct port number. Your configuration should include something like this:
proxy_set_header X-Forwarded-Host  $host:$server_port;

Reply all
Reply to author
Forward
0 new messages