summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD2
-rw-r--r--config.patch42
2 files changed, 5 insertions, 39 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7a51abe6588d..bc60d13050c1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,7 +20,7 @@ source=("$pkgname::git+$url.git#branch=master"
"nitter.service"
"nitter.install")
sha256sums=('SKIP'
- 'e685045353f85d890527b16991f8b195b1a6c6e467bc482be7a449d466d425da'
+ '89a643cba8d8e9324441e1c901d939629fdbf6f9bc66d4f6c070dc75d8714b64'
'620e38c7bb978a64d276b499d097ec4967fe8bda16852fe0c416ed61744b6526'
'79469c5cfeacf38c7469a2240ba5c19670ddaf757e6d1b5286206a18a0718487'
'560d98833c56979cb6b5d187a827788dbbdff95871f957225604b58b15c1c219'
diff --git a/config.patch b/config.patch
index b655b8a6efd6..dcdeb5e5549c 100644
--- a/config.patch
+++ b/config.patch
@@ -1,47 +1,13 @@
diff --git a/nitter.conf b/nitter.conf
-index 0d4deb7..8ea2797 100644
+index 0d4deb7..881be3d 100644
--- a/nitter.conf
+++ b/nitter.conf
-@@ -1,11 +1,11 @@
- [Server]
--hostname = "nitter.net" # for generating links, change this to your own domain/ip
--title = "nitter"
--address = "0.0.0.0"
--port = 8080
-+hostname = "nitter.net" # Change this
-+title = "nitter" # Change this?
-+address = "localhost" # Change this?
-+port = 13500 # Change this?
+@@ -5,7 +5,7 @@ address = "0.0.0.0"
+ port = 8080
https = false # disable to enable cookies when not using https
httpMaxConnections = 100
-staticDir = "./public"
+staticDir = "/usr/share/nitter/public"
-
+
[Cache]
listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)
-@@ -20,8 +20,8 @@ redisMaxConnections = 30
- # you receive tons of requests per second
-
- [Config]
--hmacKey = "secretkey" # random key for cryptographic signing of video urls
--base64Media = false # use base64 encoding for proxied media urls
-+hmacKey = "43179cf305cda132874f7a4d3fa4831a01528e516780157bebd564b0ca0297c2" # Regenerate e.g. `head -c 25 </dev/urandom | sha256sum`
-+base64Media = true # use base64 encoding for proxied media urls
- enableRSS = true # set this to false to disable RSS feeds
- enableDebug = false # enable request logs and debug endpoints (/.tokens)
- proxy = "" # http/https url, SOCKS proxies are not supported
-@@ -35,10 +35,10 @@ tokenCount = 10
-
- # Change default preferences here, see src/prefs_impl.nim for a complete list
- [Preferences]
--theme = "Nitter"
--replaceTwitter = "nitter.net"
--replaceYouTube = "piped.video"
--replaceReddit = "teddit.net"
-+theme = "twitter_dark" # Change this?
-+replaceTwitter = "nitter.net" # Use the same "hostname" as above
-+replaceYouTube = "" # Default: piped.kavin.rocks
-+replaceReddit = "" # Default: teddit.net
- proxyVideos = true
- hlsPlayback = false
- infiniteScroll = false