groob/moroz

Add Multiple Whitelist rules to gobal.toml

kcgaisford opened this issue · 1 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)/.*"