mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 03:26:57 +00:00
Make it possible to actually use redis for caching through the config flags
This commit is contained in:
parent
c4181d1206
commit
e1a22d5f4c
5 changed files with 37 additions and 12 deletions
|
@ -126,6 +126,13 @@ var (
|
|||
EnvVars: []string{"BLACKLISTED_PATHS"},
|
||||
},
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "redis-url",
|
||||
Value: "",
|
||||
Usage: "use redis instead of the built-in memory cache (recommended)",
|
||||
EnvVars: []string{"REDIS_URL"},
|
||||
},
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "log-level",
|
||||
Value: "warn",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue