From: Urban Wallasch Date: Sun, 7 Apr 2019 12:13:15 +0000 (+0200) Subject: * Updated sample configuration file and README.md. X-Git-Tag: v0.3~2 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=3a99bbdfe32eeb508164ded973003cfcecaf04c4;p=gogopherd.git * Updated sample configuration file and README.md. * Added sample gopherhole. --- diff --git a/README.md b/README.md index fa90c32..4a62219 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,17 @@ options: produce verbose output ``` -A commented example configuration file, `gogopherd.cfg`, is included -for your convenience. Any options provided on the command line will -override the respective settings in the configuration file. +A commented example configuration file, `gogopherd.cfg.example`, is +included for your convenience. Any options provided on the command +line will override the respective settings in the configuration file. + + +## Example + +A small sample gopherhole is included in this project. You can test it +by simply copying `gogopherd.cfg.example` to `gogopherd.cfg` and +starting gogopherd. Now point your gopher client to localhost port 70 +and you are good to go. ## Release History diff --git a/gogopherd.cfg.example b/gogopherd.cfg.example index 1d67c7f..870fb5c 100644 --- a/gogopherd.cfg.example +++ b/gogopherd.cfg.example @@ -2,26 +2,26 @@ # Command line options will override the respective values set here. # Network interface to bind to, empty means any. -iface = "" +iface = "localhost" # TCP port to listen on. port = 7070 # Fully qualified domain name associated with server. fqdn = "localhost" # Root directory of document hierarchy. -docroot = "." +docroot = "samplehole" # Name of directory index files. idxpage = "index.goph" # Path to header file to prepend to generated pages; absolute or relative to docroot. -header = "" +header = ".header.goph" # Path to footer file to append to generated pages; absolute or relative to docroot. -footer = "" +footer = ".footer.goph" # If true, follow symbolic links. fsymln = true # If true, show dot files. showdot = false # If true, generate directory listings where no index file is found. -indexes = false +indexes = true # EOF diff --git a/samplehole/.footer.goph b/samplehole/.footer.goph new file mode 100644 index 0000000..f03528f --- /dev/null +++ b/samplehole/.footer.goph @@ -0,0 +1,3 @@ +i Err localhost 7070 +i__________________________________________ Err localhost 7070 +iThis page was brought to you by gogopherd. Err localhost 7070 diff --git a/samplehole/.header.goph b/samplehole/.header.goph new file mode 100644 index 0000000..a2fa1b9 --- /dev/null +++ b/samplehole/.header.goph @@ -0,0 +1,5 @@ +iYou are down the samplehole of gogopherd. Err localhost 7070 +i----------------------------------------- Err localhost 7070 +i Err localhost 7070 +1Home / localhost 7070 +i Err localhost 7070 diff --git a/samplehole/LICENSE b/samplehole/LICENSE new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/samplehole/LICENSE @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/samplehole/README.md b/samplehole/README.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/samplehole/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/samplehole/index.goph b/samplehole/index.goph new file mode 100644 index 0000000..cd7841d --- /dev/null +++ b/samplehole/index.goph @@ -0,0 +1,16 @@ +i _ _ Err . 0 +i __ _ ___ __ _ ___ _ __ | |__ ___ _ __ __| | ___ _ __ ___ ___ Err . 0 +i / _` |/ _ \ / _` |/ _ \| '_ \| '_ \ / _ \ '__/ _` |/ _ \ '_ ` _ \ / _ \ Err . 0 +i| (_| | (_) | (_| | (_) | |_) | | | | __/ | | (_| | __/ | | | | | (_) | Err . 0 +i \__, |\___/ \__, |\___/| .__/|_| |_|\___|_| \__,_|\___|_| |_| |_|\___/ Err . 0 +i |___/ |___/ |_| Err . 0 +i Err . 0 +iWelcome to the samplehole of gogopherd. Err localhost 7070 +i--------------------------------------- Err localhost 7070 +i Err . 0 +0gogopherd README README.md localhost 7070 +1A subdirectory subdir localhost 7070 +i Err . 0 +1Learn about gopher at gopherproject.org / gopherproject.org 70 +i--------------------------------------- Err localhost 7070 + diff --git a/samplehole/subdir/.dotfile b/samplehole/subdir/.dotfile new file mode 100644 index 0000000..88629ca --- /dev/null +++ b/samplehole/subdir/.dotfile @@ -0,0 +1,2 @@ +This dotfile will only be listed and retrieved +if the gogopherd showdot option is set to true. \ No newline at end of file diff --git a/samplehole/subdir/gopher.asc b/samplehole/subdir/gopher.asc new file mode 100644 index 0000000..bf08ddf --- /dev/null +++ b/samplehole/subdir/gopher.asc @@ -0,0 +1,47 @@ + ...**,...,.*,,.,**..,....*/*/,..,. ......... .. ......... */*(*,...,,...... .......*/*,,...... ... ...................... + ,/**. ....,,,....**..,............ ...,//,... .... . ...,...,.,,...........,...,.,,..... ,........ .. .................... +. .. ... .,,....*,,.,,.,/,..**,,*,,..... .......,,..... ..... .,. ./#*...,,........... . . .......,,*,,,......................... +.. .. .,*,,,/***,.,,*... ..*/......,... .,,**,/(*,.,..............,,...........,*,.. ....*. ....................................... +...,,,,..... .......,*/*,,(##*,,,,,,/#(/,*,,.,/(**/((**,,.(##/,,*/(/,*(*,....,*..,,........**(*.,...,...............................,,....... +(,.,.,*/,,/***//*,,.,..*#/...*/#(,*,*/,(##(,,,*/*(/(,*###(.,##%##((/*//,.*(/,*/**,.......,..... .....,,,...................,.................. +*//(//*,*#*,###(,..**....((/*,*(###(**(##############((%####%##%%####((/,*/(/(*...,.....,.......... .,,,,................. ....,............... +,,**,*#(**##/,.,*.,,////*#%##((####(###############(((#%((##%%########%%(,,/,..,.,*,.....,,,....,,*,..,.,,,....,,,.............,............... +..,(#(/*//*..,.,#%%###(,*/%%#######///#(##############%%%####%%###%######(*,,*....,,,,**(***,,,.*,**,,...,,**/*,*/*,........................... +,*(/*,///##/,(###(/##(###/%&%%##############%#########%%#%#######%##########/*(((**(#(((*,,(#(/*((##(/,..,,,/#((/*/**,,........................ +,..,//**##((#/#((#%%##%%#%%%%###########################%%##%%%%%%#%%##%##(#((*,,.............,*,,**(****/((##((#(/**,.,,,..................... +/**(######/*/**.,,(#%#####%%%%%########################%#######%%%%##%%%#/*. .... ... . .///(####/*/*##(****/##(...,...,,............... +####%#######/,/########%%#%%%%####################%###############%%###/..,**///*,,,,,....... ./####,.,,.....,/#####(**///***,.,,,...... . +###(##########((#%%##%#%%%%%%%%####%##%%##%#################%##%%%##(*..///(#((###(#&&*/*,.... ./###(##(/(*.,,,/%%%##/,,,*,,,,,,,,......... +##%#%%%#######(/#%%####%%%%%###%%%#(##%%%%%%%%#%############%%%%%%(*.,,/%/,,*//(###&&&&&&%(*,,.......,.*(####(((**,,*#%#//(#/*,,,,,,.,,,...... +######%%%#########%%%#%%%##%%##%%%%%%%%%%%%%%%%%##%#%%#######(#%##*,,,(#%#(,,,,,*###%%%#(//((//****,,,,,,((%%####*..,((/(**###(/(,,,,//,,....,, +#%#(/###%#######%%###%%%%%%%#%%##%%%%%%%%%%%%%%%%%%%%%########%#/,,/(((/#(/*,...*(((((/**/((#(#////(((//,/#%%%%###(*,*/(#(**(%%%#(/,,...,*,*,** +##%##%#%%%%#%%######%%%%%%%%%%#%%%%%%%%%%%%##%%%%%%%%%##########**/(((/**/****//((/((((((#(((/#(((((#%&%*((#%%%%%#//((#/*///,,/(##*..,**.,,**/( +%##%%%%%%%%%#%%###%%%%%%%%#%%%%%%%%%%%%&%%%%%%%%%%%%#%%%%#####(*/(((((((/*////*/(((#######(//(/(////###(/#####%%#(/*,,,*.. .,,,***/,.,,/(//*.,. +#######%%%%%#%###%%%%%%%%%#%%%%%#%%%%%###%%%%%%%%%%%%%%###%%#(*(((##(((//((((////((#####((((#(//*///((/*/##%%##%%#%#/*/(**.......*(,/##(*,..... +########%%%%%%%%%%%%%%%%%%%%%%%#((#%%%%%%%%#%%%%%%%%%%%%%%%%#/((#####(((#((((/*////((((((((((/**////((((%%##%%%%##%#*...,*,.......,,,,......,,. +%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&%%%%%%%%%%%%%%%%/(#######((((((///////**/////((////*//###%(#%%%##%%%###/,......,..,...,,*,,,,,,,.., +(#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%&&%%%%%%%%&&&%%%(###%#####((////////////////////////#((#######/*,,//(//*,...,,,...,*,,,/*,*,...,*.,. +,(#%#%#%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%%#/%######(((//////((((((((###(#(///(#%#######/,........ .,(###/###***/,,,*,,***,,,**, +.(###((#%%##%%%%%%%%%%###%%%%%%&&%%%%%%%%%%%%%%%%%%&%%%&%%/#%%%###((((((//((//(((#####(//. ./%%####%&%#/,*(*,,//*,/((######(/,/%#***,..,,**/((( +//#####%%%%%%%%%%%%%%%%%%%&&&%%%%%%%%&%%%%%%%%&%%%%%%%%%%((%######((///////(((######((//,. *%%%%##%%##(###(,..****,**,#%(,,**,,,,**/,,,*/((/,, +##########%%###%%%%%%%%%%%&%%%%%%%%%%%%%%%%%%%%%%%%%&%%/%#%%##((((((/((((((##%%%#((((/, . ,(#%%##########(*,.,,*((/,,*((*,,,,,,,//*,,. +#######((#%%%%%%%%%%%%&%%%&%&%%%%%%%%#%%%%%%%%%%%%%&&%&%###%####((((///////((((#%##((((/, . ,#%%###%%%###%##(**//,(#/..**,,,,,,... . .. .... +##########%&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&&%%%%%###(((((//(((((####%#(((((/.... ,#%%%######%###//*/#/,,,..,,... ..... ... +####%#####%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&&%%%%&&%&&&&%%%%##((#((//(/(((((((#%#//(((*,. ... *#%%#(####%%(//(*....,......... .......,,... +(###%%#####%%%%%&&%%%&%&%%&%%%%%%%%%%%%%%%%%%%%%&&&&&&%&%%%%%####((//(((//////((#(//((/*,,.,,.... ,#%%%##(**#&((/***,.*... ........ ... +.,*##%%%%%##%%%%&&&&%%%%%%%%%%%%%&%%%%%%%%%%%%%&&&&&&&&%%%%%%%###(((((/(/(/////((((/((,**,.,*,.,... .(#/**#&&@%###(#/.. ... ............. ... +,..,/##%%%%%%%%#%&&&&&%%&&&%%%%%%&&%%%%%%%%%&%&&&&&&&&%%%%%%%##((((((((//////(((((((,,/*,.*/**(#(*,...,*/%%%%%%%##(*... ... .,,,..,,...... +..,/,,/#%%###%%%%&&&&&%%&&&&&&&&%%%&&%%%%%%%%&&&&&&&&&%%%%%%%#####((((((///////((##/((,,(/*,,(#((####(/(##%%%&%&&&%/...........,*.............. +......./%####%%%%&&&&&&&&&%&&&&&&%%&&%%&&&&&&&&&&&&&%##%%%%%%%#####(((((((/////((((/(/,*((*,.(%&%%%##((##%%@@&%%,,.,,.... ... ........ .. .. +. .....*##%%#%%%%&&&&&&&&%&&&%%%%%&&%%&&&&&&&&&&&&&%#/##%%%%%%%#####(////////((((((((/,,((/,,(@@@@@@@@&&&&&&&&%#,..,,,..,*,,,,...,,............ +,. .. .,%%%%%&&&&&&&&&&&&&&&&&&&&%&&&&&&&&&&&&%*/%%%%%%%%#%%%####(///(//((((((((#(/*##(/*(@@@@@@@@@@@&&&%(,,...,......,,....... .......... +..,,.. .**,.,#%%%%&&&&&&%%%&&&&&&&&&&&&&&&&&&&&&*/#%###%%%#%%%%%%####(((/(((((((((((((/(#((%&@@@@@@@@@@@&(,.............................. .. + ..,... .*#/.*%%%%&&&&&%%&&&&&&&&&&&&&&&&&&&&&&&(*(########%%##%%%%%%###((((((((((((((((((*.(&@@@@@@@@@@&(... ....,,..... ..,.................. +,,,**,... .*(((%%%&&&&&&&&&&&&&&&&&&&&&@@&&&&&*(##########%%%%%#%#%#####(((((((((((((((* *@@@@@&%&(..,......,,,,,,*,,,,,,,,............... + ..,/(*,,,,*%#%%%%&&%%%&@@&&&&&&&&&&&&&&&&&&&*/(###(#((####%##############(#((((((###((/*,.. .*%#*......,..,,,...,,,.,,,............... .... +,. ..*(/**(**%%%%&&&%%%&&@&&&&&&&&&&@&&&&&&&&%(//####((#((#####(###########(#####(#(#(#(#((/*,. .....,,....,**. ..,*,,..,,,,,,...,.,....... .. + ..,*.*(/*((%%%&&&&&&&&&&&&&&&@@@@@@@@@@&@&%((/#(##((((#((##((##(##(((((((((/(((######((((*,......,.,..,,,,,,,,,,.,.,..... .*,,........... . +......*,,*(#%%%%%%%%&&&&&&&&&&@@@@@@@@@&@@@(((((((((#(#(((#(((((((((((////(((#%%%%#(/*...........,,,,,,,,..,,,,....................... ...... +..,,,....*(/%%%%%%%&&%&&&&&&&&&&&&&@@@@@@@@#((((((((((((((##((((((((/((((((###%%#,...............,,,,,,...,,,,,,.,,,..,,...,,........... ... +..,,,,... .,/%%%%%%%&%&&&&&&&&&&&&&@@@@@@&%#####((((((((((((###((((((((/((#(#/*,. .........,.,....,........,,..,,,,,,,....,/,............. ... +/,,,.........,/%%%&&&%%%&&&&&&&&&&@@@@@@@&%###(###((((((((#####(((((((((/,. ..... .......,,,..,.,,,........,,,..,,.,,,....,*(*....,..... .....