Hi, The configuration looks fine. Can you provide RBTools debug log (--debug)?
Was Apache also listening on port 8090, and without SSL? I'm curious if RBTools is using the correct address. Christian On Mon, Jun 28, 2021 at 9:19 AM tw bert <[email protected]> wrote: > Hi, > > RB 4.0.1, RbTools 2.0 > > To tune some RAM issues, we switched to nginx+gunicorn (like in the docker > images). > > The RB site works fine. > Even dl-ing something from the api via the browser works fine: > http://srv-reviewboard:8090/api/users/ > gives a downloaded file with the users > > However, using rbtools we get an error: > rbtools.api.errors.ServerInterfaceError: [Errno 10061] No connection could > be made because the target machine actively refused it > > We use the nginx config example from > https://www.reviewboard.org/docs/manual/4.0/admin/installation/docker/ . > (but not the docker images themselves) > > Simply stopping nginx and starting apache solves the issue. But we'd like > to switch to nginx. > > Any pointers? > > Here is our nxinx config: > > upstream reviewboard_rprox { > server localhost:8080; > } > > server { > server_name srv-reviewboard; > listen 8090; > > root /var/www/reviews.FOO.com/htdocs; > > location / { > proxy_pass http://reviewboard_rprox; > proxy_set_header X-Forwarded-For > $proxy_add_x_forwarded_for; > proxy_set_header Host $host; > proxy_redirect off; > } > > location /media/ { > alias /var/www/reviews.FOO.com/htdocs/media/; > add_header Access-Control-Allow-Origin *; > expires max; > > location ~ \.(html|htm|shtml|php)$ { > types {} > default_type text/plain; > } > } > > location /static/ { > alias /var/www/reviews.FOO.com/htdocs/static/; > add_header Access-Control-Allow-Origin *; > expires max; > } > } > > > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/reviewboard/ce1260ea-212d-415a-b308-e45d9a5ef509n%40googlegroups.com > <https://groups.google.com/d/msgid/reviewboard/ce1260ea-212d-415a-b308-e45d9a5ef509n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Christian Hammond President/CEO of Beanbag <https://www.beanbaginc.com/> Makers of Review Board <https://www.reviewboard.org/> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/CAE7Vndk1koFN3pk0PMSnKXWHWmqo-dvqFNvZXpRLf3nEyQgbVw%40mail.gmail.com.
