mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Merge ead28be44e361fe4e1bc27c5528ce06d75bb7225 into 7b0f8b58607fb0ed338f0cfddeb80c629582d8f6
This commit is contained in:
commit
e4272edbfe
@ -21,6 +21,7 @@ WORKDIR /webarchive
|
||||
ENV INIT_COLLECTION ''
|
||||
|
||||
ENV VOLUME_DIR /webarchive
|
||||
ENV UWSGI_MOUNT '/=/pywb/pywb/apps/wayback.py'
|
||||
|
||||
#USER archivist
|
||||
COPY docker-entrypoint.sh ./
|
||||
@ -31,4 +32,3 @@ EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
CMD ["uwsgi", "/uwsgi/uwsgi.ini"]
|
||||
|
||||
|
@ -373,6 +373,8 @@ For example, to deploy pywb under the ``/wayback`` subdirectory, the ``uwsgi.ini
|
||||
mount = /wayback=./pywb/apps/wayback.py
|
||||
manage-script-name = true
|
||||
|
||||
Alternatively this can also be achieved using the `UWSGI_MOUNT` environment variable, e.g. with the value `/wayback=/pywb/pywb/apps/wayback.py`.
|
||||
This is specifically handy on the docker image.
|
||||
|
||||
.. _example-deploy:
|
||||
|
||||
|
@ -22,4 +22,13 @@ env = GEVENT_MONKEY_PATCH=1
|
||||
|
||||
# specify config file here
|
||||
env = PYWB_CONFIG_FILE=config.yaml
|
||||
|
||||
if-not-env = UWSGI_MOUNT
|
||||
wsgi = pywb.apps.wayback
|
||||
endif =
|
||||
|
||||
# Set the path to which pywb should be mounted
|
||||
if-env = UWSGI_MOUNT
|
||||
mount = %(_)
|
||||
manage-script-name = true
|
||||
endif =
|
||||
|
Loading…
x
Reference in New Issue
Block a user