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:
parent
a5f44c464a
commit
c76559a4d4
1 changed files with 25 additions and 0 deletions
25
wiki/reverse-proxy.md
Normal file
25
wiki/reverse-proxy.md
Normal 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;
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Add table
Reference in a new issue