0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

(wiki): Add reverse proxy conf

This commit is contained in:
Juan Picado @jotadeveloper 2017-06-24 09:26:10 +02:00
parent a5f44c464a
commit c76559a4d4
No known key found for this signature in database
GPG key ID: 18AC54485952D158

25
wiki/reverse-proxy.md Normal file
View file

@ -0,0 +1,25 @@
# 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;
}
}
```