From 145dda3e0fd7a88da9dededb882c3654676aad22 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 23 Apr 2021 16:04:18 -0400 Subject: [PATCH] add some more env vars to deploy template --- .do/deploy.template.yaml | 40 ++++++++++++++++++++++++++++++++++++++-- README.md | 6 +++--- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml index c84b2b36..e4b50002 100644 --- a/.do/deploy.template.yaml +++ b/.do/deploy.template.yaml @@ -1,10 +1,46 @@ spec: name: archivebox services: - - dockerfile_path: Dockerfile + - name: archivebox git: branch: dev repo_clone_url: https://github.com/ArchiveBox/ArchiveBox.git - name: archivebox + 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 diff --git a/README.md b/README.md index 1b216f12..8378f99b 100644 --- a/README.md +++ b/README.md @@ -285,13 +285,13 @@ archivebox help # to see more options
  • Deploy to DigitalOcean (referral link) (USD $25-50/mo)
  • -
  • (USD $60-200/mo)
  • -
  • (USD $29-250/mo)
  • +
  • (USD $60-200/mo)
  • +
  • (USD $29-250/mo)
  • None of these providers are officially endorsed, some manual setup or periodic updating may be required, and you may experience varying levels of service quality from them. -Note: some of these are referral links, any earnings go towards supporting ArchiveBox development. +Note: some of these are referral links, any referral earnings go towards supporting ArchiveBox development. #### ⚡️  CLI Usage