forked from github.com/pypiserver
Replace .htaccess references with .htpasswd
This commit is contained in:
parent
bc34b7ee4b
commit
57428d010f
@ -366,9 +366,9 @@ To serve packages from a directory on the host, e.g. ``~/packages``::
|
|||||||
|
|
||||||
docker run -p 80:8080 -v ~/packages:/data/packages pypiserver/pypiserver:latest
|
docker run -p 80:8080 -v ~/packages:/data/packages pypiserver/pypiserver:latest
|
||||||
|
|
||||||
To authenticate against a local ``.htaccess`` file::
|
To authenticate against a local ``.htpasswd`` file::
|
||||||
|
|
||||||
docker run -p 80:8080 -v ~/.htaccess:/data/.htaccess pypiserver/pypiserver:latest -P .htaccess packages
|
docker run -p 80:8080 -v ~/.htpasswd:/data/.htpasswd pypiserver/pypiserver:latest -P .htpasswd packages
|
||||||
|
|
||||||
You can also specify ``pypiserver`` to run as a Docker service using a
|
You can also specify ``pypiserver`` to run as a Docker service using a
|
||||||
composefile. An example composefile is `provided <docker-compose.yml>`_.
|
composefile. An example composefile is `provided <docker-compose.yml>`_.
|
||||||
@ -557,7 +557,7 @@ package and as such, it provides excellent cross-platform support for process
|
|||||||
management. An example configuration file for ``supervisor`` is given below::
|
management. An example configuration file for ``supervisor`` is given below::
|
||||||
|
|
||||||
[program:pypi]
|
[program:pypi]
|
||||||
command=/home/pypi/pypi-venv/bin/pypi-server -p 7001 -P /home/pypi/.htaccess /home/pypi/packages
|
command=/home/pypi/pypi-venv/bin/pypi-server -p 7001 -P /home/pypi/.htpasswd /home/pypi/packages
|
||||||
directory=/home/pypi
|
directory=/home/pypi
|
||||||
user=pypi
|
user=pypi
|
||||||
autostart=true
|
autostart=true
|
||||||
|
@ -12,9 +12,9 @@ services:
|
|||||||
- type: bind
|
- type: bind
|
||||||
source: ./data
|
source: ./data
|
||||||
target: /data
|
target: /data
|
||||||
# Use an .htaccess file to control access, serve packages from
|
# Use an .htpasswd file to control access, serve packages from
|
||||||
# ./data (which will be /data in the container)
|
# ./data (which will be /data in the container)
|
||||||
command: -P /data/.htaccess -a update,download,list /data/packages
|
command: -P /data/.htpasswd -a update,download,list /data/packages
|
||||||
ports:
|
ports:
|
||||||
- "80:8080"
|
- "80:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user