Skip to content

Commit

Permalink
fix: Allow openagentpolicy host override
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylamhk committed Apr 26, 2024
1 parent 9d2018f commit 876b11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def generate_secret_key():
IAM_ADMIN_ROLE = 'admin'
# Index in the list below corresponds to the priority (0 has highest priority)
IAM_ROLES = [IAM_ADMIN_ROLE, 'business', 'user', 'worker']
IAM_OPA_HOST = 'http://opa:8181'
IAM_OPA_HOST = os.getenv('IAM_OPA_HOST', 'http://opa:8181')
IAM_OPA_DATA_URL = f'{IAM_OPA_HOST}/v1/data'
IAM_OPA_RULES_PATH = 'cvat/apps/iam/rules:'
LOGIN_URL = 'rest_login'
Expand Down

0 comments on commit 876b11a

Please sign in to comment.