1
0
Fork 0
mirror of synced 2024-05-03 12:04:18 +12:00

cleanup config files

This commit is contained in:
Nick Sweeting 2021-04-23 22:58:44 -04:00
parent 1cdd2bf496
commit eb80dc26a1
8 changed files with 43 additions and 55 deletions

View file

@ -1,46 +0,0 @@
spec:
name: archivebox
services:
- name: archivebox
git:
branch: dev
repo_clone_url: https://github.com/ArchiveBox/ArchiveBox.git
dockerfile_path: Dockerfile
source_dir: ./
instance_count: 1
routes:
- path: /
http_port: 8000
health_check:
http_path: /admin/login/
envs:
- key: ALLOWED_HOSTS
scope: RUN_AND_BUILD_TIME
value: '*'
- key: SAVE_ARCHIVE_DOT_ORG
scope: RUN_AND_BUILD_TIME
value: "True"
- key: SAVE_MEDIA
scope: RUN_AND_BUILD_TIME
value: "True"
- key: TIMEOUT
scope: RUN_AND_BUILD_TIME
value: "120"
- key: MEDIA_TIMEOUT
scope: RUN_AND_BUILD_TIME
value: "3600"
- key: PUBLIC_INDEX
scope: RUN_AND_BUILD_TIME
value: "True"
- key: PUBLIC_SNAPSHOTS
scope: RUN_AND_BUILD_TIME
value: "True"
- key: PUBLIC_ADD_VIEW
scope: RUN_AND_BUILD_TIME
value: "False"
- key: CHECK_SSL_VALIDITY
scope: RUN_AND_BUILD_TIME
value: "False"
- key: MEDIA_MAX_SIZE
scope: RUN_AND_BUILD_TIME
value: 750m

View file

@ -1,6 +0,0 @@
[flake8]
ignore = D100,D101,D102,D103,D104,D105,D202,D203,D205,D400,E131,E241,E252,E266,E272,E701,E731,W293,W503,W291,W391
select = F,E9,W
max-line-length = 130
max-complexity = 10
exclude = migrations,tests,node_modules,vendor,venv,.venv,.venv2,.docker-venv

View file

@ -3,4 +3,4 @@ ignore = D100,D101,D102,D103,D104,D105,D202,D203,D205,D400,E131,E241,E252,E266,E
select = F,E9,W
max-line-length = 130
max-complexity = 10
exclude = migrations,tests,node_modules,vendor,static,venv,.venv,.venv2,.docker-venv
exclude = migrations,tests,node_modules,vendor,venv,.venv,.venv2,.docker-venv

View file

@ -15,7 +15,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
source "$DIR/.venv/bin/activate"
echo "[*] Running flake8..."
flake8 archivebox && echo "√ No errors found."
cd archivebox
flake8 . && echo "√ No errors found."
echo

View file

@ -1 +0,0 @@
0 24 * * * www-data /opt/ArchiveBox/bin/archive "https://getpocket.com/users/example/feed/all" >> /var/log/ArchiveBox.log

40
etc/fly.toml Normal file
View file

@ -0,0 +1,40 @@
# fly.toml file generated for archivebox on 2021-04-23T16:35:11-04:00
app = "archivebox"
kill_signal = "SIGINT"
kill_timeout = 5
[env]
[mounts]
source="archivebox_data"
destination="/data"
[experimental]
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8000
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 6
timeout = "2s"