Skip to content

Commit 7597ea2

Browse files
committed
udpate README
1 parent 235dca8 commit 7597ea2

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ http://localhost:8080/ruleset
106106
| `LOG_URLS` | Log fetched URL's | `true` |
107107
| `DISABLE_FORM` | Disables URL Form Frontpage | `false` |
108108
| `FORM_PATH` | Path to custom Form HTML | `` |
109-
| `RULESET` | URL to a ruleset file | `https://raw.githubusercontent.com/everywall/ladder/main/ruleset.yaml` or `/path/to/my/rules.yaml` |
109+
| `RULESET` | Path or URL to a ruleset file, accepts local directories | `https://raw.githubusercontent.com/everywall/ladder/main/ruleset.yaml` or `/path/to/my/rules.yaml` or `/path/to/my/rules/` |
110110
| `EXPOSE_RULESET` | Make your Ruleset available to other ladders | `true` |
111111
| `ALLOWED_DOMAINS` | Comma separated list of allowed domains. Empty = no limitations | `` |
112112
| `ALLOWED_DOMAINS_RULESET` | Allow Domains from Ruleset. false = no limitations | `false` |
@@ -176,6 +176,7 @@ See in [ruleset.yaml](ruleset.yaml) for an example.
176176
To run a development server at http://localhost:8080:
177177
178178
```bash
179+
echo "dev" > handlers/VERSION
179180
RULESET="./ruleset.yaml" go run cmd/main.go
180181
```
181182

docker-compose.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ services:
99
environment:
1010
- PORT=8080
1111
- RULESET=/app/ruleset.yaml
12+
#- ALLOWED_DOMAINS=example.com,example.org
1213
#- ALLOWED_DOMAINS_RULESET=false
1314
#- EXPOSE_RULESET=true
1415
#- PREFORK=false
15-
#- DISABLE_FORM=fase
16+
#- DISABLE_FORM=false
1617
#- FORM_PATH=/app/form.html
1718
#- X_FORWARDED_FOR=66.249.66.1
1819
#- USER_AGENT=Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)

handlers/proxy.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ func ProxySite(rulesetPath string) fiber.Handler {
107107
return c.SendString(err.Error())
108108
}
109109

110-
c.Cookie(&fiber.Cookie{})
111-
c.Set("Content-Type", resp.Header.Get("Content-Type"))
112-
c.Set("Content-Security-Policy", resp.Header.Get("Content-Security-Policy"))
110+
c.Cookie(&fiber.Cookie{})
111+
c.Set("Content-Type", resp.Header.Get("Content-Type"))
112+
c.Set("Content-Security-Policy", resp.Header.Get("Content-Security-Policy"))
113113

114114
return c.SendString(body)
115115
}

0 commit comments

Comments
 (0)