From: Peng Mei Yu <pengmeiyu@riseup.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Make guix-publish's URL identical to cache file name
Date: Mon, 09 Nov 2020 10:59:29 +0800 [thread overview]
Message-ID: <87o8k7utf2.fsf@riseup.net> (raw)
In-Reply-To: <87mtzu24ii.fsf@gnu.org>
Hello,
Ludovic Courtès writes:
>> Then a mirror site can simply pull the directory
>> /var/cache/guix/publish/nar from the Berlin server and serve this
>> directory through a static HTTP server. There will be cache misses.
>> But guix-daemon will safely fallback to the next server in
>> substitute-urls.
>
> The simplest solution for now (I think that’s what Ricardo & co. had in
> mind) would be for you to retrieve /var/cache/guix/publish on your
> server, as is, and then run ‘guix publish’ on your sever: it will know
> where to find files. As I wrote to Jonathan, you can/should also run
> nginx on top of that as a proxy to your local ‘guix publish’.
I am afraid having to install Guix and run 'guix publish' will be a
major obstacle for most mirror sites, especially when their maintainers
have no previous experience with Guix and have no interest in learning a
new software and do not want to pollute their server with an unknown
software and do not want to increase maintenance burden. This is the
simplest solution on our side, but a complex solution on mirror site
maintainers' side.
I guess a complex Nginx URL rewrite rule might also convert the URL into
real filename in the cache. Can anyone familiar with Nginx explain?
--
Peng Mei Yu
next prev parent reply other threads:[~2020-11-09 10:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-04 8:46 Make guix-publish's URL identical to cache file name Peng Mei Yu
2020-11-04 12:01 ` Jonathan Brielmaier
2020-11-05 1:55 ` Peng Mei Yu
2020-11-13 12:53 ` zimoun
2020-11-06 9:51 ` Ludovic Courtès
2020-11-06 9:55 ` Ludovic Courtès
2020-11-07 6:03 ` Ricardo Wurmus
2020-11-08 17:08 ` Ludovic Courtès
2020-12-09 8:29 ` Peng Mei Yu
2020-12-14 9:54 ` Ludovic Courtès
2021-01-11 2:13 ` Peng Mei Yu
2020-11-09 2:59 ` Peng Mei Yu [this message]
2020-11-12 20:37 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8k7utf2.fsf@riseup.net \
--to=pengmeiyu@riseup.net \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.