-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker configuration for SSL reverse proxy usage. #19
Comments
@ldurnez any idea on that ? |
I'm coming back for news on this subject :) |
Hi, Any news on this subject ? I'm facing exactly the same issue |
Hi, Could you give us the content of proxy_pass http://webserver:8000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; To go further: https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header It worked for me with this config: loadbalancer:
<<: *opencve_defaults
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- webserver
networks:
- frontend
ports:
- ${OPENCVE_PORT:-8000}:80
webserver:
<<: *opencve_defaults
build:
context: .
args:
- OPENCVE_VERSION=${OPENCVE_VERSION}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
dockerfile: Dockerfile
depends_on:
- postgres
command: webserver -b 0.0.0.0:8000
deploy:
replicas: 3
networks:
- frontend
- backend File:
|
Hi ! The contents of
The My reverse-proxy configuration is then :
I just added the last When using nginx as a reverse proxy, my
Also, the |
Context
Hi.
I'm in the process of switching the web access to https using a reverse proxy on the host on which the dockers are instantiated.
The reverse proxy, using nginx, is configured to map the host public ip address (for now) as follows:
The
opencve.cfg
file is modified so that theserver_name
variable is theip.ad.dr.es/opencve
and setuse_reverse_proxy
toTrue
. I didn't change the Dockerfile nor thedocker-compose.yml
file regarding to the launch of the web server command.Expected Behavior
I expected the service would be usable over https.
Actual Behavior
A 404 error page is displayed. Changing the
server_name
to that of the public address and port makes opencve reachable but without being proxyfied.Steps to Reproduce the Problem
Specifications
Screenshots (optional)
The text was updated successfully, but these errors were encountered: