aboutsummaryrefslogtreecommitdiff
path: root/Configuration.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-07 13:34:17 +0000
committerFuwn <[email protected]>2025-06-07 13:34:17 +0000
commit22bce5a842dc365a5a18644d0fbdcc75e6aa5d5e (patch)
tree17f02d84656a586e826fae5c2802644a045e6b13 /Configuration.md
parentchore: Bump version patch (diff)
downloadseptember-22bce5a842dc365a5a18644d0fbdcc75e6aa5d5e.tar.xz
september-22bce5a842dc365a5a18644d0fbdcc75e6aa5d5e.zip
feat!: Overhaul KEEP_GEMINI configuration option
Diffstat (limited to 'Configuration.md')
-rw-r--r--Configuration.md22
1 files changed, 8 insertions, 14 deletions
diff --git a/Configuration.md b/Configuration.md
index dfacbe9..a1c1930 100644
--- a/Configuration.md
+++ b/Configuration.md
@@ -37,14 +37,17 @@ If no `CSS_EXTERNAL` value is provided, a default stylesheet of
CSS_EXTERNAL=https://cdnjs.cloudflare.com/ajax/libs/mini.css/3.0.1/mini-default.min.css
```
-## `KEEP_GEMINI_EXACT`
+## `KEEP_GEMINI`
-A comma-separated list of Gemini URIs to keep as is when proxying.
+A comma-separated list of Gemini URL fragments to keep as is when proxying
+
+Wildcards are supported using the `*` character, and exceptions can be made
+using the `!` character
```dotenv
-# These two URIs will be kept pointing to their original Gemini URIs when
-# proxied instead of being replaced with their proxied equivalents.
-KEEP_GEMINI_EXACT=gemini://fuwn.me/something,gemini://fuwn.me/another
+# These rules ensure that all Gemini URLs will be left untouched in the proxied
+# HTML response except for URLs under the "fuwn.me" domain
+KEEP_GEMINI=!*fuwn.me/*,gemini://*
```
## `HEAD`
@@ -55,15 +58,6 @@ Insert any string at the end of the HTMl `<head>`
HEAD=<script>/* September */</script><style>/* September */</style>
```
-## `KEEP_GEMINI_DOMAIN`
-
-Similar to `KEEP_GEMINI_EXACT`, except matches based on entire domain or domains
-instead of exact URIs
-
-```dotenv
-KEEP_GEMINI_DOMAIN=fuwn.me,example.com
-```
-
## `PROXY_BY_DEFAULT`
Control whether or not all Gemini URLs will be proxied