@@ -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
- value: "True"
- - key: SAVE_MEDIA
- - key: TIMEOUT
- value: "120"
- - key: MEDIA_TIMEOUT
- value: "3600"
- - key: PUBLIC_INDEX
- - key: PUBLIC_SNAPSHOTS
- - key: PUBLIC_ADD_VIEW
- value: "False"
- - key: CHECK_SSL_VALIDITY
- - key: MEDIA_MAX_SIZE
- value: 750m
@@ -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
@@ -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
@@ -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
@@ -1 +0,0 @@
-0 24 * * * www-data /opt/ArchiveBox/bin/archive "https://getpocket.com/users/example/feed/all" >> /var/log/ArchiveBox.log
@@ -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
+ handlers = ["tls", "http"]
+ port = 443
+ [[services.tcp_checks]]
+ grace_period = "1s"
+ interval = "15s"
+ restart_limit = 6
+ timeout = "2s"