add NITTER_PORT variable and use it in nitter-config/templates/nitter.conf

This commit is contained in:
staticsafe 2021-09-11 13:28:39 -04:00
parent c56ef58daf
commit 6e119c7d8d
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ NITTER_USER: nitter
# Specify the domain Nitter will run under # Specify the domain Nitter will run under
NITTER_DOMAIN: nitter.example.com NITTER_DOMAIN: nitter.example.com
# Specify the port Nitter will listen on, 8080 is fine if you are unsure
NITTER_PORT: 8080
# Specify the HMAC Nitter will use # Specify the HMAC Nitter will use
# generate this using pwgen -s 24 1 # generate this using pwgen -s 24 1
NITTER_HMAC: NITTER_HMAC:

View File

@ -1,6 +1,6 @@
[Server] [Server]
address = "127.0.0.1" address = "127.0.0.1"
port = 8080 port = {{ NITTER_PORT }
https = false # disable to enable cookies when not using https https = false # disable to enable cookies when not using https
httpMaxConnections = 100 httpMaxConnections = 100
staticDir = "./public" staticDir = "./public"