0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/docker-examples/v5/reverse_proxy/nginx_relative/nginx/default.conf

20 lines
512 B
Text
Raw Normal View History

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;
}
}