Hi !
I'm running nexus on docker behind nginx and using the Nexus One UI.
When clicking the Copy URL button on the browse page of a pypi repository the copied URL does not include the base path configured in nexus-context-path.

I get :
https://host/repository/pypi/
When I should get:
https://host/repository/prefix/pypi
Nexus version: 3.92.1
Docker image: sonatype/nexus3:3.92.1@sha256:e08d0236154d13fb2a4fb050d9553762a92261b72d92dea99d99bb38ece5cac5
Docker command: /usr/bin/docker run --name nexus \
-e NEXUS_CONTEXT=prefix \
-v nexus-volume:/nexus-data \
-p 127.0.0.1:8081:8081 \
--rm sonatype/nexus3:3.92.1@sha256:e08d0236154d13fb2a4fb050d9553762a92261b72d92dea99d99bb38ece5cac5
nexus.properties
nexus-context-path=/${NEXUS_CONTEXT}
Nginx configuration
location /prefix {
proxy_send_timeout 120;
proxy_read_timeout 300;
proxy_buffering off;
proxy_request_buffering off;
keepalive_timeout 5 5;
tcp_nodelay on;
# allow large uploads of files
client_max_body_size 1G;
# optimize downloading files larger than 1G
# proxy_max_temp_file_size 2G;
proxy_pass http://127.0.0.1:8090/prefix;
proxy_pass_header Server;
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";
}
Hi !
I'm running nexus on docker behind nginx and using the Nexus One UI.
When clicking the
Copy URLbutton on the browse page of a pypi repository the copied URL does not include the base path configured innexus-context-path.I get :
When I should get:
nexus.propertiesNginx configuration