From 9eb7532bfa1388c9ea72fc3dcc7e67d615e83222 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 27 Dec 2021 03:13:40 +0100 Subject: [PATCH] Untrack nitter.conf, add nitter.example.conf Closes #324 --- .gitignore | 3 ++- Dockerfile | 2 +- README.md | 2 +- nitter.conf => nitter.example.conf | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename nitter.conf => nitter.example.conf (100%) diff --git a/.gitignore b/.gitignore index 6224090..967cc65 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ nitter *.db /tests/__pycache__ /tests/geckodriver.log -/tmp +/tests/downloaded_files/* /tools/gencss /public/css/style.css +nitter.conf diff --git a/Dockerfile b/Dockerfile index ee44e32..6c8bc21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,6 @@ RUN nimble build -y -d:release --passC:"-flto" --passL:"-flto" \ FROM alpine:latest WORKDIR /src/ RUN apk --no-cache add pcre sqlite -COPY --from=nim /src/nitter/nitter /src/nitter/nitter.conf ./ +COPY --from=nim /src/nitter/nitter /src/nitter/nitter.example.conf ./nitter.conf COPY --from=nim /src/nitter/public ./public CMD ./nitter diff --git a/README.md b/README.md index e90e58d..6ad063b 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ $ git clone https://github.com/zedeus/nitter $ cd nitter $ nimble build -d:release $ nimble scss -$ mkdir ./tmp +$ cp nitter.example.conf nitter.conf ``` Set your hostname, port, HMAC key, https (must be correct for cookies), and diff --git a/nitter.conf b/nitter.example.conf similarity index 100% rename from nitter.conf rename to nitter.example.conf