From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#32233: Cuirass: Berlin web API times out Date: Mon, 23 Jul 2018 22:07:40 +0200 Message-ID: <87d0vdogvn.fsf@gnu.org> References: <87lga5lyxa.fsf@lassieur.org> <87lga2tj3d.fsf@gnu.org> <87va96tbek.fsf@lassieur.org> <87h8kqovgg.fsf@gnu.org> <87sh4at1gz.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhh7j-00079t-UB for bug-guix@gnu.org; Mon, 23 Jul 2018 16:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhh7i-0000Z6-UJ for bug-guix@gnu.org; Mon, 23 Jul 2018 16:08:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhh7i-0000Yp-Oi for bug-guix@gnu.org; Mon, 23 Jul 2018 16:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhh7i-0004tD-HC for bug-guix@gnu.org; Mon, 23 Jul 2018 16:08:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87sh4at1gz.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Mon, 23 Jul 2018 17:29:16 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 32233-done@debbugs.gnu.org Cl=C3=A9ment Lassieur skribis: > Ludovic Court=C3=A8s writes: > >> Cl=C3=A9ment Lassieur skribis: >> >>>> Is the Web UI already in the current =E2=80=98cuirass=E2=80=99 package? >>> >>> Soon! But I think we should change the NGINX config nonetheless because >>> the json API is useful. >> >> The JSON API is available; see =E2=80=98berlin-locations.conf=E2=80=99. >> >>>> If so, what do we need to change in the nginx config? >>> >>> I guess we could add: >>> >>> server { >> >> [...] >> >>> location / { >>> proxy_pass http://localhost:8081; >>> } >>> } >> >> I think this change should go do =E2=80=98berlin-locations.conf=E2=80=99. > > That would conflict with the '/' location of ports 80 and 443. I was > rather thinking about using port 8081 for Cuirass. In that case the > 'server' block would be needed in berlin.conf. We would also remove > > # Cuirass. > location /specifications { proxy_pass http://localhost:8081; } > location /jobsets { proxy_pass http://localhost:8081; } > location /build { proxy_pass http://localhost:8081; } > location /api { proxy_pass http://localhost:8081; } > > from berlin-locations.conf. Hmm, I think nginx should still expose both the Cuirass HTTP API and UI and =E2=80=98guix publish=E2=80=99 on ports 80 and 443. So we just need to= have: location / { proxy_pass http://localhost:8081; } and then exceptions for =E2=80=98guix publish=E2=80=99: location \.narinfo { =E2=80=A6 } location /nar/ { =E2=80=A6 } location /log/ { =E2=80=A6 } location /file/ { =E2=80=A6 } WDYT? Or am I missing something? Thanks, Ludo=E2=80=99.