mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
caddyhttp: Add time.now placeholder and update cel-go (closes #2594)
This commit is contained in:
parent
bb67e19d7b
commit
0cbf467b3f
4 changed files with 11 additions and 3 deletions
|
@ -276,6 +276,8 @@ func globalDefaultReplacements(key string) (interface{}, bool) {
|
|||
return runtime.GOOS, true
|
||||
case "system.arch":
|
||||
return runtime.GOARCH, true
|
||||
case "time.now":
|
||||
return nowFunc(), true
|
||||
case "time.now.common_log":
|
||||
return nowFunc().Format("02/Jan/2006:15:04:05 -0700"), true
|
||||
case "time.now.year":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue