upstream verdaccio_relative_v5 { server verdaccio_relative_path_v5:4873; keepalive 8; } server { listen 80 default_server; access_log /var/log/nginx/verdaccio.log; charset utf-8; location ~ ^/verdaccio/(.*)$ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_set_header X-NginX-Proxy true; proxy_pass http://verdaccio_relative_v5/$1; proxy_redirect off; } }