mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-22 03:58:06 +00:00
make acl_policy_path fatal if policy.path is not set (#2041)
This commit is contained in:
@@ -82,7 +82,7 @@ type Option = func(c *HeadscaleInContainer)
|
||||
func WithACLPolicy(acl *policy.ACLPolicy) Option {
|
||||
return func(hsic *HeadscaleInContainer) {
|
||||
// TODO(kradalby): Move somewhere appropriate
|
||||
hsic.env["HEADSCALE_ACL_POLICY_PATH"] = aclPolicyPath
|
||||
hsic.env["HEADSCALE_POLICY_PATH"] = aclPolicyPath
|
||||
|
||||
hsic.aclPolicy = acl
|
||||
}
|
||||
|
Reference in New Issue
Block a user