diff options
| author | Jason A. Donenfeld | 2018-07-03 20:44:08 +0200 |
|---|---|---|
| committer | Jason A. Donenfeld | 2018-07-03 20:44:25 +0200 |
| commit | c4167cbd65acef801e6132ba1182f6ce246ed630 (patch) | |
| tree | d7f4f53148e3313b0ff4f44b3088d63ed6715577 | |
| parent | 7ba41963dde175581ae7b395045fd51678237930 (diff) | |
| download | cgit-c4167cbd65acef801e6132ba1182f6ce246ed630.tar.gz cgit-c4167cbd65acef801e6132ba1182f6ce246ed630.tar.bz2 cgit-c4167cbd65acef801e6132ba1182f6ce246ed630.zip | |
cgitrc.5: document new signature notes
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
| -rw-r--r-- | cgitrc.5.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 6f008cc..6b4efa2 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
| @@ -759,7 +759,7 @@ the environment variables defined in "FILTER API": | |||
| 759 | 759 | ||
| 760 | 760 | ||
| 761 | CACHE | 761 | CACHE |
| 762 | ------ | 762 | ----- |
| 763 | 763 | ||
| 764 | All cache ttl values are in minutes. Negative ttl values indicate that a page | 764 | All cache ttl values are in minutes. Negative ttl values indicate that a page |
| 765 | type will never expire, and thus the first time a URL is accessed, the result | 765 | type will never expire, and thus the first time a URL is accessed, the result |
| @@ -767,6 +767,22 @@ will be cached indefinitely, even if the underlying git repository changes. | |||
| 767 | Conversely, when a ttl value is zero, the cache is disabled for that | 767 | Conversely, when a ttl value is zero, the cache is disabled for that |
| 768 | particular page type, and the page type is never cached. | 768 | particular page type, and the page type is never cached. |
| 769 | 769 | ||
| 770 | SIGNATURES | ||
| 771 | ---------- | ||
| 772 | |||
| 773 | Cgit can host .asc signatures corresponding to various snapshot formats, | ||
| 774 | through use of git notes. For example, the following command may be used to | ||
| 775 | add a signature to a .tar.xz archive: | ||
| 776 | |||
| 777 | git notes --ref=refs/notes/signatures/tar.xz add -C "$( | ||
| 778 | gpg --output - --armor --detach-sign cgit-1.1.tar.xz | | ||
| 779 | git hash-object -w --stdin | ||
| 780 | )" v1.1 | ||
| 781 | |||
| 782 | If it is instead desirable to attach a signature of the underlying .tar, this | ||
| 783 | will be linked, as a special case, beside a .tar.* link that does not have its | ||
| 784 | own signature. | ||
| 785 | |||
| 770 | 786 | ||
| 771 | EXAMPLE CGITRC FILE | 787 | EXAMPLE CGITRC FILE |
| 772 | ------------------- | 788 | ------------------- |
