From cbab7e04e0747f4e9ee758925b058edcdf80576d Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Sun, 3 Apr 2022 14:05:57 +0000 Subject: [PATCH] Add support Replit --- .licenserc.yaml | 2 ++ .replit | 14 ++++++++++++++ README.md | 1 + replit.nix | 13 +++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 .replit create mode 100644 replit.nix diff --git a/.licenserc.yaml b/.licenserc.yaml index 453834ce..ee0358a1 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -43,6 +43,8 @@ header: - 'cosign.pub' - 'codecov.yml' - 'mkdocs.yml' + - '.replit' + - 'replit.nix' comment: on-failure diff --git a/.replit b/.replit new file mode 100644 index 00000000..0a5eeb0f --- /dev/null +++ b/.replit @@ -0,0 +1,14 @@ +run = "while :; do set -ex; curl -fsSL https://github.com/wabarc/wayback/raw/main/install.sh | sh -s -- -b ~/.local/bin; wayback ${WAYBACK_ARGS}; sleep 1; done" +language = "bash" + +[nix] +channel = "stable-21_11" + +[env] +WAYBACK_ARGS = "-d web" +ENABLE_METRICS = "true" +WAYBACK_ENABLE_IA = "true" +WAYBACK_ENABLE_IS = "true" +WAYBACK_ENABLE_IP = "true" +WAYBACK_ENABLE_PH = "true" +WAYBACK_STORAGE_DIR = "/tmp/reduxer" diff --git a/README.md b/README.md index 4f719749..12726e73 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,7 @@ docker run -d wabarc/wayback wayback -d telegram -t YOUR-BOT-TOKEN -c YOUR-CHANN **Note:** These are free hosting options. If you need a quick and simple setup, this method may be ideal. +Run on Repl.it [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/wabarc/wayback)