X-Git-Url: http://www.git.cypherpunks.ru/?p=gocheese.git;a=blobdiff_plain;f=usage.go;h=be4d94559718616e66db87d33e437ba63429e538;hp=3959d6a7fd2b9ab2c8ee2e4da8d4115be7d076c4;hb=HEAD;hpb=60bbf40bfc8b720f176faef55b5403986db86f8c diff --git a/usage.go b/usage.go index 3959d6a..7fbedb2 100644 --- a/usage.go +++ b/usage.go @@ -1,19 +1,17 @@ -/* -GoCheese -- Python private package repository and caching proxy -Copyright (C) 2019-2021 Sergey Matveev - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, version 3 of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +// GoCheese -- Python private package repository and caching proxy +// Copyright (C) 2019-2024 Sergey Matveev +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . package main @@ -27,7 +25,6 @@ const ( DefaultMaxClients = 128 DefaultNoRefreshURLPath = "/norefresh/" DefaultRefreshURLPath = "/simple/" - DefaultGPGUpdateURLPath = "/gpgupdate/" DefaultJSONURLPath = "/pypi/" DefaultPyPIURL = "https://pypi.org/simple/" DefaultJSONURL = "https://pypi.org/pypi/" @@ -60,7 +57,6 @@ TLS enabling options: HTTP endpoints: -norefresh URLPATH -- Non-refreshing Simple API path (default: %s) -refresh URLPATH -- Auto-refreshing Simple API path (default: %s) - -gpgupdate URLPATH -- GPG forceful refreshing path (default: %s) -json URLPATH -- JSON API path (default: %s) Upstream PyPI: @@ -73,6 +69,7 @@ Password management: -passwd PATH -- Path to readable FIFO for loading passwords -passwd-list PATH -- Path to writeable FIFO for listing logins -passwd-check -- Verify passwords format from stdin, then exit + -auth-required -- Require authorisation even for read-only endpoints Other options: -log-timestamped -- Prepend timestamp to log messages @@ -86,7 +83,6 @@ GOCHEESE_NO_SYNC=1 environment variable disable filesystem fsyncs. DefaultMaxClients, DefaultNoRefreshURLPath, DefaultRefreshURLPath, - DefaultGPGUpdateURLPath, DefaultJSONURLPath, DefaultPyPIURL, DefaultJSONURLPath,