Any way to pass environment variables into gsa container?

Hello deeemmbee, and welcome to the Greenbone Community Forum. :slightly_smiling_face:

You don’t need to pass an environment variable to the GSA container to change the timeout. You can simply add an argument that speicifies the timeout when starting the gsad.service:

  • Open a root shell in the gsa container (i.e. docker exec -ti <ContainerID> bash)
  • Change your directory to /lib/systemd/system (cd /lib/systemd/system)
  • You may need to install an editor like nano or vim (apt update && apt install nano)
  • In the gsad.service file, append --timeout=<TimeoutMinutes> to the line that starts with ExecStart
  • Save and exit the file
  • Restart the gsad service or the whole container, whatever is more convenient to you

More detailed information about the web frontend timeout can be found here.

EDIT: In case you want to see all the available options for the gsad service, you can simply run gsad --help in the GSA container. :slight_smile: