groob / moroz

Moroz is a Santa server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Multiple Whitelist rules to gobal.toml

kcgaisford opened this issue · comments

Whats the best way to add multiple Whitelisting or Blacklisting Rules?

I would like to add multiple things such as:

whitelist_regex = "^(?:/Users)/.*/.rbenv/.*"
whitelist_regex = "^/usr/local/Homebrew/.*"

As soon as I add the Second Whitelist_regex rule the server Is unable to start:

2020/04/10 12:56:48 failed to decode global.toml, skipping 
2020/04/10 12:56:48 configuration not found```

A little late, but hopefully will help others that run across this.

Example dirs for list (with multiple subdirs):

  • /Users/*/.rbenv
  • /usr/local/somedir1
  • /usr/local/somedir2

whitelist_regex = "^/Users/.*/.rbenv|/usr/local/(?:somedir1|somedir2)/.*"