From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#32233: Cuirass: Berlin web API times out Date: Mon, 23 Jul 2018 22:12:23 +0200 Message-ID: <87tvopn23c.fsf@lassieur.org> References: <87lga5lyxa.fsf@lassieur.org> <87lga2tj3d.fsf@gnu.org> <87va96tbek.fsf@lassieur.org> <87h8kqovgg.fsf@gnu.org> <87sh4at1gz.fsf@lassieur.org> <87d0vdogvn.fsf@gnu.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]:39343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhhCc-0008Ii-CH for bug-guix@gnu.org; Mon, 23 Jul 2018 16:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhhCY-0005uU-BR for bug-guix@gnu.org; Mon, 23 Jul 2018 16:13:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49358) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhhCY-0005ta-5p for bug-guix@gnu.org; Mon, 23 Jul 2018 16:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhhCX-000517-RR for bug-guix@gnu.org; Mon, 23 Jul 2018 16:13:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87d0vdogvn.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 32233-done@debbugs.gnu.org Ludovic Court=C3=A8s writes: > 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 packag= e? >>>> >>>> Soon! But I think we should change the NGINX config nonetheless becau= se >>>> 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? No :-) Sounds good!