aboutsummaryrefslogtreecommitdiff
path: root/Capybara.yaml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-22 00:50:51 -0800
committerFuwn <[email protected]>2022-02-22 00:50:51 -0800
commit5ddf4db7c4ed84fb041eaf066eec3cf3f7e73112 (patch)
treee25c2ad6bd6cb4518f16252cbde6d3e1c94f9502 /Capybara.yaml
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadcapybara-5ddf4db7c4ed84fb041eaf066eec3cf3f7e73112.tar.xz
capybara-5ddf4db7c4ed84fb041eaf066eec3cf3f7e73112.zip
feat(#2): optionally, do not proxy url(s)
If the user provides a `Capybara.yaml` with the `capybara.keep_gemini` key, do not proxy the provided values (URLs). Also implements a rudimentary configuration system for future extension. Thanks, @WellsBit!
Diffstat (limited to 'Capybara.yaml')
-rw-r--r--Capybara.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Capybara.yaml b/Capybara.yaml
new file mode 100644
index 0000000..bc9e04b
--- /dev/null
+++ b/Capybara.yaml
@@ -0,0 +1,6 @@
+capybara:
+ keep_gemini: # A list of hosts where if the host is present; the URL will not be proxied
+ - fuwn.me #
+ # Example:
+ # Proxied: `gemini://gem.rest` becomes `/proxy/gem.rest`
+ # Not proxied (present in `capybara.keep_gemini`): `gemini://gem.rest` is kept