mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
user only for api:
This commit is contained in:
@@ -451,7 +451,6 @@ func (a *api) start() error {
|
||||
iam.AddPolicy("$anon", "$none", "api:/api", "GET|HEAD|OPTIONS")
|
||||
iam.AddPolicy("$anon", "$none", "api:/api/v3/widget/process/**", "GET|HEAD|OPTIONS")
|
||||
|
||||
iam.AddPolicy("$localhost", "$none", "fs:/**", "GET|HEAD|OPTIONS")
|
||||
iam.AddPolicy("$localhost", "$none", "api:/api", "GET|HEAD|OPTIONS")
|
||||
iam.AddPolicy("$localhost", "$none", "api:/api/v3/widget/process/**", "GET|HEAD|OPTIONS")
|
||||
|
||||
@@ -469,7 +468,6 @@ func (a *api) start() error {
|
||||
|
||||
if !cfg.Storage.Memory.Auth.Enable {
|
||||
iam.AddPolicy("$anon", "$none", "fs:/memfs/**", "ANY")
|
||||
iam.AddPolicy("$localhost", "$none", "fs:/memfs/**", "ANY")
|
||||
}
|
||||
|
||||
if cfg.RTMP.Enable && len(cfg.RTMP.Token) == 0 {
|
||||
|
Reference in New Issue
Block a user