1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Introduce UWSGI_MOUNT env var

This commit is contained in:
Natanael Arndt 2025-02-12 14:37:26 +01:00
parent 97fffe3a34
commit 27dbb0018b
2 changed files with 10 additions and 1 deletions

View File

@ -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"]

View File

@ -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 =