Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #186 from HXSecurity/Bidaya0-patch-1
Browse files Browse the repository at this point in the history
Bidaya0 patch 1
  • Loading branch information
Bidaya0 committed Dec 23, 2021
2 parents e60e266 + 14a0543 commit 215cc49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AgentServer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,5 @@
CONFIRMED = 3
IGNORE = 4
SOLVED = 5
if os.getenv('active.profile', None) == 'TEST' or os.getenv('PYTHONAGENT', None) == 'TRUE':
#MIDDLEWARE.append('dongtai_agent_python.middlewares.django_middleware.FireMiddleware')
pass
if os.getenv('environment', None) == 'DEV' or os.getenv('PYTHONAGENT', None) == 'TRUE':
MIDDLEWARE.append('dongtai_agent_python.middlewares.django_middleware.FireMiddleware')
2 changes: 2 additions & 0 deletions deploy/deploy-eks-iast-saas-openapi-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
env:
- name: "active.profile"
value: "TEST"
- name: "environment"
value: "DEV"
volumes:
- name: configfile
secret:
Expand Down

0 comments on commit 215cc49

Please sign in to comment.