about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-03-03 12:56:14 -0600
committerCase Duckworth2021-03-03 12:56:14 -0600
commitf0f51d22a17f1138486b2ee8bb6017f6a8e120f1 (patch)
treeab37ae1fdd52ffe40cf78cd01e6213886b0f16a7
parentMore documentation (diff)
downloadbollux-f0f51d22a17f1138486b2ee8bb6017f6a8e120f1.tar.gz
bollux-f0f51d22a17f1138486b2ee8bb6017f6a8e120f1.zip
Allow for customizing default gemini & gopher ports
-rwxr-xr-xbollux3
-rw-r--r--bollux.conf.513
2 files changed, 12 insertions, 4 deletions
diff --git a/bollux b/bollux index c910cd5..a4e9584 100755 --- a/bollux +++ b/bollux
@@ -233,8 +233,9 @@ bollux_config() {
233 ## behavior 233 ## behavior
234 : "${BOLLUX_TIMEOUT:=30}" # connection timeout 234 : "${BOLLUX_TIMEOUT:=30}" # connection timeout
235 : "${BOLLUX_MAXREDIR:=5}" # max redirects 235 : "${BOLLUX_MAXREDIR:=5}" # max redirects
236 : "${BOLLUX_PORT:=1965}" # port number
237 : "${BOLLUX_PROTO:=gemini}" # default protocol 236 : "${BOLLUX_PROTO:=gemini}" # default protocol
237 : "${BOLLUX_GEMINI_PORT:=1965}" # default port for gemini
238 : "${BOLLUX_GOPHER_PORT:=70}" # default port for gopher
238 : "${BOLLUX_URL:=}" # start url 239 : "${BOLLUX_URL:=}" # start url
239 : "${BOLLUX_BYEMSG:=See You Space Cowboy ...}" # bye message 240 : "${BOLLUX_BYEMSG:=See You Space Cowboy ...}" # bye message
240 ## lesskeys 241 ## lesskeys
diff --git a/bollux.conf.5 b/bollux.conf.5 index 9c66ced..b22cd58 100644 --- a/bollux.conf.5 +++ b/bollux.conf.5
@@ -1,5 +1,5 @@
1\" -*- nroff -*- 1\" -*- nroff -*-
2.TH bollux.conf 5 0.4.0 2.TH bollux.conf 5 0.4.1
3.SH NAME 3.SH NAME
4.B bollux.conf 4.B bollux.conf
5\- configuration file for 5\- configuration file for
@@ -240,12 +240,19 @@ It's possible they could be tweaked to make
240work differently, like browsing gopher instead of gemini, 240work differently, like browsing gopher instead of gemini,
241but that capability has not been tested. 241but that capability has not been tested.
242.TP 242.TP
243.BR BOLLUX_PORT 243.BR BOLLUX_GEMINI_PORT
244valid values are port numbers (1-65535); default is '1965'. 244valid values are port numbers (1-65535); default is '1965'.
245.br 245.br
246The port 246The port
247.BR bollux (1) 247.BR bollux (1)
248tries to connect to on the server. 248tries to connect to on gemini servers.
249.TP
250.BR BOLLUX_GOPHER_PORT
251valid values are port numbers (1-65535); default is '70'.
252.br
253The port
254.BR bollux (1)
255tries to connect to on gopher servers.
249.TP 256.TP
250.BR BOLLUX_PROTO 257.BR BOLLUX_PROTO
251valid values are protocol names (strings); default is 'gemini'. 258valid values are protocol names (strings); default is 'gemini'.