1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

Merge branch 'master' of github.com:verdaccio/verdaccio

This commit is contained in:
Juan Picado @jotadeveloper 2017-07-29 01:47:19 +02:00
commit 124e89867f
No known key found for this signature in database
GPG Key ID: 18AC54485952D158

@ -66,6 +66,7 @@ location / {
proxy_pass http://127.0.0.1:4873/; proxy_pass http://127.0.0.1:4873/;
proxy_set_header Host $host:$server_port; proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
} }
``` ```
For this case, `url_prefix` should NOT set in verdaccio config For this case, `url_prefix` should NOT set in verdaccio config
@ -78,6 +79,7 @@ location ~ ^/verdaccio/(.*)$ {
proxy_pass http://127.0.0.1:4873/$1; proxy_pass http://127.0.0.1:4873/$1;
proxy_set_header Host $host:$server_port; proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
} }
``` ```
For this case, `url_prefix` should set to `/verdaccio/` For this case, `url_prefix` should set to `/verdaccio/`