make acl_policy_path fatal if policy.path is not set (#2041)
This commit is contained in:
parent
f99497340b
commit
84cb5d0aed
6 changed files with 42 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue