misp-modules
misp-modules copied to clipboard
Module settings / module for proxy settings
Have a way in tornado to set per module the proxy settings instead o just having a global setting.
This issue seems to suggest there's a global setting for the proxy used by misp-modules. Please share where that is, how to set it, etc. Thanks in advance.
I do that <- global by setting an environment variable in the startup script of the modules.
Right now we use the following line in /etc/systemd/system/misp-modules.service
:
/usr/bin/scl enable rh-python36 rh-ruby22 '/data/misp/venv/bin/misp-modules -l 127.0.0.1 -s'
I think you're suggesting I should create a shell script, add entries http_proxy and no_proxy, then invoke the /usr/bin/scl.. line from misp-modules.service in the script. I sure don't want to edit files that come from misp_modules.
I have added this line in the systemd file of the modules service script.
Environment=http_proxy=http://PROXY:3128
A nice solution @cudeso thank you! What is the syntax if you need to set TWO environment variables?