0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/wiki/reverse-proxy.md
Juan Picado @jotadeveloper c76559a4d4
(wiki): Add reverse proxy conf
2017-06-24 09:26:10 +02:00

456 B

Reverse Proxy Setup

Apache

Apache and mod_proxy should not decode/encode slashes and leave them as they are:

<VirtualHost *:80>
  AllowEncodedSlashes NoDecode
  ProxyPass /npm http://127.0.0.1:4873 nocanon
  ProxyPassReverse /npm http://127.0.0.1:4873
</VirtualHost>

Nginx

server {
  listen 80 default_server;
  location / {
    proxy_pass              http://127.0.0.1:4873/;
    proxy_set_header        Host $host;
  }
}
```