aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-12 20:49:47 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-12 20:49:47 +0200
commitef8172874f650078e8cfb6e1582de4ece5495640 (patch)
tree35ced9080db86739904e903a68999fd1606bc9b1 /readme.md
parentb28c5418b0635bf2fc3b0d18922df4ebb7cccd57 (diff)
downloadgnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar
gnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar.bz2
gnix-ef8172874f650078e8cfb6e1582de4ece5495640.tar.zst
add any/all conditions and experimental CGI support
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index 428fabd..609d420 100644
--- a/readme.md
+++ b/readme.md
@@ -166,6 +166,8 @@ themselves; in that case the request is passed on.
prefix
- `!path_is <path>`: Checks if the URI path is exactly what you specified
- `!has_header <name>`: Checks if the request includes a certain header.
+ - `!any [conditions]`: Checks if any of a set of conditions are satisfied.
+ - `!all [conditions]`: Checks if all conditions are satisfied.
- `case_true` Handler with matched requests (module)
- `case_false` Handler for all other requests (module)
@@ -178,6 +180,13 @@ themselves; in that case the request is passed on.
- Responds with a permanent redirect.
- Takes the location to redirect to. (string)
+- **module `cgi`**
+ - Runs a CGI script on the request. **This is experimental and probably
+ vulnerable! Don't use this.**
+ - `bin`: Path to the CGI binary
+ - `user`: User that the script is executed as. Requires to run gnix as root.
+ (optional string)
+
#### Credentials config format
Login credentials for `cookie_auth` and `http_basic_auth` are supplied as either