Allow for customizing default gemini & gopher ports

This commit is contained in:
Case Duckworth 2021-03-03 12:56:14 -06:00
parent d17d3f73eb
commit f0f51d22a1
2 changed files with 12 additions and 4 deletions

3
bollux
View File

@ -233,8 +233,9 @@ bollux_config() {
## behavior
: "${BOLLUX_TIMEOUT:=30}" # connection timeout
: "${BOLLUX_MAXREDIR:=5}" # max redirects
: "${BOLLUX_PORT:=1965}" # port number
: "${BOLLUX_PROTO:=gemini}" # default protocol
: "${BOLLUX_GEMINI_PORT:=1965}" # default port for gemini
: "${BOLLUX_GOPHER_PORT:=70}" # default port for gopher
: "${BOLLUX_URL:=}" # start url
: "${BOLLUX_BYEMSG:=See You Space Cowboy ...}" # bye message
## lesskeys

View File

@ -1,5 +1,5 @@
\" -*- nroff -*-
.TH bollux.conf 5 0.4.0
.TH bollux.conf 5 0.4.1
.SH NAME
.B bollux.conf
\- configuration file for
@ -240,12 +240,19 @@ It's possible they could be tweaked to make
work differently, like browsing gopher instead of gemini,
but that capability has not been tested.
.TP
.BR BOLLUX_PORT
.BR BOLLUX_GEMINI_PORT
valid values are port numbers (1-65535); default is '1965'.
.br
The port
.BR bollux (1)
tries to connect to on the server.
tries to connect to on gemini servers.
.TP
.BR BOLLUX_GOPHER_PORT
valid values are port numbers (1-65535); default is '70'.
.br
The port
.BR bollux (1)
tries to connect to on gopher servers.
.TP
.BR BOLLUX_PROTO
valid values are protocol names (strings); default is 'gemini'.