I'm trying to run nexus behind an SSL Reverse Proxy, where nexus is not working with custom context path.
I've also updated with Base URL Capabilities in nexus as https://dev
location / {
.....
.....
}
With location / the request works properly, however it does not work with location /nexus
Below is my nginx config for reference
server {
listen *:443;
server_name dev;
client_max_body_size 1G;
proxy_max_temp_file_size 2G;
ssl on;
ssl_certificate dev-test.crt;
ssl_certificate_key dev-test.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5s;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /nexus {
proxy_pass http://server:8081/;
proxy_set_header Host $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 "https";
}
}