summarylogtreecommitdiffstats
path: root/config.patch
blob: bddd4b916be4942db3215fa9b43c3cc6db3d65e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git i/nitter.conf w/nitter.conf
index d6d860b..877b270 100644
--- i/nitter.conf
+++ w/nitter.conf
@@ -1,11 +1,11 @@
 [Server]
-address = "0.0.0.0"
-port = 8080
+address = "localhost"  # Change this?
+port = 13500  # Change this?
 https = false  # disable to enable cookies when not using https
 httpMaxConnections = 100
-staticDir = "./public"
-title = "nitter"
-hostname = "nitter.net"
+staticDir = "/usr/share/nitter/public"
+title = "nitter"  # Change this?
+hostname = "nitter.net"  # Change this
 
 [Cache]
 listMinutes = 240  # how long to cache list info (not the tweets, so keep it high)
@@ -19,8 +17,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
 tokenCount = 10
 # minimum amount of usable tokens. tokens are used to authorize API requests,
 # but they expire after ~1 hour, and have a limit of 187 requests.
@@ -30,9 +28,9 @@ tokenCount = 10
 
 # Change default preferences here, see src/prefs_impl.nim for a complete list
 [Preferences]
-theme = "Nitter"
-replaceTwitter = "nitter.net"
-replaceYouTube = "piped.kavin.rocks"
+theme = "twitter_dark"  # Change this?
+replaceTwitter = "nitter.net"  # Use the same "hostname" as above
+replaceYouTube = ""  # Default: piped.kavin.rocks
 replaceInstagram = ""
 proxyVideos = true
 hlsPlayback = false