2
0
Эх сурвалжийг харах

add CUSTOM_TEMPLATES=/data/templates default config in Docker

Nick Sweeting 1 жил өмнө
parent
commit
b56bfe57f1

+ 2 - 1
Dockerfile

@@ -266,7 +266,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-$TARGETARCH$T
 
 # Setup ArchiveBox runtime config
 WORKDIR "$DATA_DIR"
-ENV IN_DOCKER=True
+ENV IN_DOCKER=True \
+    CUSTOM_TEMPLATES_DIR=/data/templates \
     ## No need to set explicitly, these values will be autodetected by archivebox in docker:
     # CHROME_SANDBOX=False \
     # WGET_BINARY="wget" \

+ 4 - 4
archivebox/core/settings.py

@@ -73,10 +73,10 @@ INSTALLED_APPS = [
     
     'plugins.defaults',
     'plugins.system',
-    # 'plugins.replaywebpage',
-    # 'plugins.gallerydl',
-    # 'plugins.browsertrix',
-    # 'plugins.playwright',
+    # 'plugins.replaywebpage',           # provides UI to view WARC files
+    # 'plugins.gallerydl',               # provides gallerydl dependency + extractor
+    # 'plugins.browsertrix',             # provides browsertrix dependency + extractor
+    # 'plugins.playwright',              # provides playwright dependency
     # ...
     # someday we may have enough plugins to justify dynamic loading:
     # *(path.parent.name for path in (Path(PACKAGE_DIR) / 'plugins').glob('*/apps.py')),,