I have installed openvas9 and have installed certs from a cert store. I have tried to then use nginx as a reverse proxy. My openvas settings are at /etc/default/openvas-gsa
and look like this;
# Defaults for Greenbone Security Assistant initscript
# sourced by /etc/init.d/openvas-gsa
# installed at /etc/default/openvas-gsa by the maintainer scripts
# To disable HTTPS:
#
#HTTP_ONLY=1
# To enable http redirection:
#
HTTP_REDIRECT=1
# To set listening address:
#
#LISTEN_ADDRESS="0.0.0.0"
# To set listening port number:
#
PORT_NUMBER=4000
My nginx config at /etc/nginx/sites-enabled/openvas
looks like this (with the server name changed for obviously);
server {
listen 443 ssl;
server_name vas.server.com;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE_HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-FORWARDED-PROTOCOL $scheme;
proxy_pass http://localhost:4000;
}
}
All I get is a 502 Bad Gateway
. Where am I going wrong?