Skip to content

Commit

Permalink
feat: fly.io vm
Browse files Browse the repository at this point in the history
  • Loading branch information
kristobalus committed Nov 29, 2023
1 parent 60b8ac2 commit f6f96e6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
*.md
LICENSE
docker-compose.yml
guest_accounts.json
Dockerfile
tests/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ nitter.conf
guest_accounts.json
dump.rdb
.idea
fly.toml
2 changes: 1 addition & 1 deletion build-image.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Read the version from package.json
VERSION=1.0.2
VERSION=1.0.3
IMAGE=kristobalus/nitter
echo "building image $IMAGE using buildx for multi-arch..."

Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

echo "$NITTER_GUEST_ACCOUNTS_URL"
cp /config/nitter.conf /src/nitter.conf
wget -O /src/guest_accounts.json "$NITTER_GUEST_ACCOUNTS_URL"
./nitter
3 changes: 2 additions & 1 deletion nitter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ staticDir = "./public"
[Cache]
listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)
rssMinutes = 10 # how long to cache rss queries
redisHost = "127.0.0.1" # Change to "nitter-redis" if using docker-compose
# redisHost = "127.0.0.1" # Change to "nitter-redis" if using docker-compose
redisHost = " fly-api-nitter-redis.upstash.io"
redisPort = 6379
redisPassword = ""
redisConnections = 20 # minimum open connections in pool
Expand Down

0 comments on commit f6f96e6

Please sign in to comment.