From 6e119c7d8d9c94f90403d81ee68795492fa568b7 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sat, 11 Sep 2021 13:28:39 -0400 Subject: [PATCH] add NITTER_PORT variable and use it in nitter-config/templates/nitter.conf --- group_vars/all.sample | 3 +++ nitter-config/templates/nitter.conf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/group_vars/all.sample b/group_vars/all.sample index 2d847b5..d280ffe 100644 --- a/group_vars/all.sample +++ b/group_vars/all.sample @@ -4,6 +4,9 @@ NITTER_USER: nitter # Specify the domain Nitter will run under 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 # generate this using pwgen -s 24 1 NITTER_HMAC: diff --git a/nitter-config/templates/nitter.conf b/nitter-config/templates/nitter.conf index 05a593c..b887ce5 100644 --- a/nitter-config/templates/nitter.conf +++ b/nitter-config/templates/nitter.conf @@ -1,6 +1,6 @@ [Server] address = "127.0.0.1" -port = 8080 +port = {{ NITTER_PORT } https = false # disable to enable cookies when not using https httpMaxConnections = 100 staticDir = "./public"