@@ -35,6 +35,7 @@ def get_plugin_environment(
35
35
entity_id = None ,
36
36
hostname = None ,
37
37
port = None ,
38
+ proxy_trust_env = False ,
38
39
debug = "0" ,
39
40
new_process = False ,
40
41
):
@@ -64,6 +65,8 @@ def get_plugin_environment(
64
65
for the Toolkit Manager to bootstrap the engine
65
66
ALIAS_PLUGIN_CLIENT_SIO_HOSTNAME - the host for the socketio server to connect to
66
67
ALIAS_PLUGIN_CLIENT_SIO_PORT - the port number for the socketio server to connect to
68
+ ALIAS_PLUGIN_CLIENT_PROXY_TRUST_ENV - set to trust the proxy environment variables else do not set to
69
+ ignore env variables for proxy settings
67
70
68
71
:param alias_version: The Alias version that the plugin is running with.
69
72
:type alias_version: str
@@ -76,6 +79,8 @@ def get_plugin_environment(
76
79
:param python_exe: Option to specify a python.exe to run the client app with. Defaults
77
80
to the sys.executable
78
81
:type python_exe: str
82
+ :param proxy_trust_env: True to trust env vars for proxy settings else False to ignore
83
+ :type proxy_trust_env: bool
79
84
:param debug: Set to "1" to run in debug mode, else "0" for non-debug mode.
80
85
:type debug: str
81
86
@@ -113,6 +118,9 @@ def get_plugin_environment(
113
118
if port is not None :
114
119
env ["ALIAS_PLUGIN_CLIENT_SIO_PORT" ] = str (port )
115
120
121
+ if proxy_trust_env :
122
+ env ["ALIAS_PLUGIN_CLIENT_PROXY_TRUST_ENV" ] = "1"
123
+
116
124
return env
117
125
118
126
@@ -756,6 +764,7 @@ def ensure_plugin_ready(
756
764
pipeline_config_id = None ,
757
765
entity_type = None ,
758
766
entity_id = None ,
767
+ proxy_trust_env = None ,
759
768
debug = None ,
760
769
logger = None ,
761
770
):
@@ -807,6 +816,8 @@ def ensure_plugin_ready(
807
816
:param entity_id: If the client is running within Flow Production Tracking, set the entity id used by
808
817
the Toolkit Manager to bootstrap the engine from the plugin.
809
818
:type entity_id: int
819
+ :param proxy_trust_env: True to use env vars for proxy settings else False to ignore
820
+ :type proxy_trust_env: bool
810
821
:param debug: Set to True to turn on debugging for the plugin, else False.
811
822
:type debug: bool
812
823
:param logger: Set a logger object to capture output from this operation.
@@ -884,6 +895,7 @@ def ensure_plugin_ready(
884
895
pipeline_config_id = pipeline_config_id ,
885
896
entity_type = entity_type ,
886
897
entity_id = entity_id ,
898
+ proxy_trust_env = proxy_trust_env ,
887
899
debug = debug ,
888
900
server_python_exe = server_python_exe ,
889
901
new_process = new_process ,
0 commit comments