Novage / wt-tracker

High-performance WebTorrent tracker
Apache License 2.0
253 stars 88 forks source link

Can I set "allowOrigins" and deny all which not in allow list ? #36

Closed stevenking888 closed 9 months ago

stevenking888 commented 3 years ago

Hello,

From example config file https://github.com/Novage/wt-tracker/blob/master/sample/config.json

Can I assign only "allowOrigins" domain (I'm sure can I set wildcard for domain ?) with ""denyEmptyOrigin": true" ?

like this

"websocketsAccess": { "allowOrigins": ["https://xxx.com", "https://yyy.com"], "denyEmptyOrigin": true }

Will only "https://xxx.com", "https://yyy.com" allow other which not in the allow list are deny ?

fremzuck commented 1 year ago

yes