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 17:29:16 +0200 Message-ID: <87sh4at1gz.fsf@lassieur.org> References: <87lga5lyxa.fsf@lassieur.org> <87lga2tj3d.fsf@gnu.org> <87va96tbek.fsf@lassieur.org> <87h8kqovgg.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]:57315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhcmm-0002IJ-DI for bug-guix@gnu.org; Mon, 23 Jul 2018 11:30:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhcmg-0001Dk-II for bug-guix@gnu.org; Mon, 23 Jul 2018 11:30:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:49221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhcmg-0001DZ-E6 for bug-guix@gnu.org; Mon, 23 Jul 2018 11:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhcmg-0006lI-4D for bug-guix@gnu.org; Mon, 23 Jul 2018 11:30:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87h8kqovgg.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: > >>> 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. Otherwise we need to think about what routes go to Cuirass and what routes go to Guix publish. Alternatively, we could use another domain name with ports 80 and 443, but it's more work. WDYT?