I use GVM 20.8.1 in docker container.
I would like to use it with nginx, but the nginx.conf file is on my server and it is not in the container.
Currently gsad creates https so I would like to modify it to http and redirect it to my nginx.
Unfortunately I had no luck with this solution: GSAD Nginx reverse proxy
So, have somebody a resolution for it?
That is not possible and GSA is not designed for that. So you have for forward the full port. Due to the fact that GSA is generating the content dynamically you need to patch the GSA for that to re-write the base path … but the security for GSA is based on using GSA as dynamic webserver.
Thanks Lukas, how do you main that? " So you have for forward the full port. "
Just the TCP port 443 … that´s it.
ok, I understood Lukas, but I would like to use my own certs with my own domain name, unfortunately as far as I know, in this case I can not use nginx to define these for me, or could I?
So when I want to expose my docker container ports like this;
docker run --detach --publish 8080:9392 --publish 5432:5432 --publish 2222:22
the GVM will listen on 8080/https, and nginx can not forward the 8080/https to 443/https with my certs and my domain name.
Do you have any idea for that?
Why don´t you install your certificates with GSA ? It does support any certificates. I don´t know about the ports, it seems you use a uncoordinated integration that is not using any standard ports like we do.
GSA not use my certs, I have add these as cert for GSA but when I have run openssl, cert still same.
You just need to put your certificate as argument to the GSAD.
–help will give you the options:
-k, --ssl-private-key= Use as the private key for HTTPS
-c, --ssl-certificate= Use as the certificate for HTTPS
Thanks Lukas, I know.
That is what I have exactly did, but unfortunately certs did not change.
Maybe some scripts are messed up and start with the wrong certs. How do you start gsad ? You might wanna do it manually and check if this is working and then debug your startup magic to fix the broken magic.