mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
Merge pull request #271 from amirmohsen/patch-1
Adding X-Forwarded-Proto header to docs
This commit is contained in:
commit
bd03fc34d2
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,7 @@ location / {
|
|||
proxy_pass http://127.0.0.1:4873/;
|
||||
proxy_set_header Host $host:$server_port;
|
||||
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
|
||||
|
@ -78,6 +79,7 @@ location ~ ^/verdaccio/(.*)$ {
|
|||
proxy_pass http://127.0.0.1:4873/$1;
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
```
|
||||
For this case, `url_prefix` should set to `/verdaccio/`
|
||||
|
|
Loading…
Add table
Reference in a new issue