ignore shm db file and config files in archivebox data dir on init

This commit is contained in:
Nick Sweeting 2021-02-15 14:52:37 -05:00
parent 3c3bae02d2
commit 00ae1f15a7
2 changed files with 6 additions and 1 deletions

View file

@ -76,6 +76,7 @@ from .config import (
ARCHIVE_DIR,
LOGS_DIR,
CONFIG_FILE,
CONFIG_FILENAME,
ARCHIVE_DIR_NAME,
SOURCES_DIR_NAME,
LOGS_DIR_NAME,
@ -131,10 +132,13 @@ ALLOWED_IN_OUTPUT_DIR = {
LOGS_DIR_NAME,
SQL_INDEX_FILENAME,
f'{SQL_INDEX_FILENAME}-wal',
f'{SQL_INDEX_FILENAME}-shm',
JSON_INDEX_FILENAME,
HTML_INDEX_FILENAME,
ROBOTS_TXT_FILENAME,
FAVICON_FILENAME,
CONFIG_FILENAME,
f'{CONFIG_FILENAME}.bak',
}
@enforce_types

View file

@ -21,11 +21,12 @@ services:
environment:
- USE_COLOR=True
- SHOW_PROGRESS=False
# - SEARCH_BACKEND_ENGINE=sonic
# - SEARCH_BACKEND_ENGINE=sonic # uncomment these if you enable sonic below
# - SEARCH_BACKEND_HOST_NAME=sonic
# - SEARCH_BACKEND_PASSWORD=SecretPassword
volumes:
- ./data:/data
# - ./archivebox:/app/archivebox # for developers working on archivebox
# To run the Sonic full-text search backend, create an ./etc/sonic folder
# and download the sonic config file from here into that folder: