From 2dec7483045c9e5696182db7b4ad842491b6c2b2 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 10 Dec 2023 11:47:11 +0100 Subject: Enable finger protocol by default * Add a default urimethodmap that points finger: to cha-finger * Install cha-finger to /usr/local/libexec/cha/cgi-bin by default * cha-finger: use ALL_PROXY if given, die if curl is not installed --- src/config/config.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/config') diff --git a/src/config/config.nim b/src/config/config.nim index 5f8e9c17..1274e731 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -385,9 +385,13 @@ proc getMimeTypes*(config: Config): MimeTypes = return DefaultGuess return mimeTypes +const DefaultURIMethodMap = parseURIMethodMap(""" +finger: cgi-bin:cha-finger?%s +""") + proc getURIMethodMap*(config: Config): URIMethodMap = let configDir = getConfigDir() / "chawan" #TODO store this in config? - var urimethodmap: URIMethodMap + var urimethodmap = DefaultURIMethodMap for p in config.external.urimethodmap: let f = openFileExpand(configDir, p) if f != nil: -- cgit 1.4.1-2-gfad0 'tabs'> summary refs log blame commit diff stats
path: root/doc/examples/plugin_hello_world.py
blob: a803e21bc1c5fb4341306b271c1163676bd5824c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15