mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
Merge pull request #198 from mysiar/apache-reverse-proxy
Apache reverse proxy configuration
This commit is contained in:
commit
9626250140
1 changed files with 23 additions and 0 deletions
23
SERVER.md
23
SERVER.md
|
@ -65,3 +65,26 @@ The locations may vary depending on your server setup. If you want to know where
|
|||
$ which forever
|
||||
$ which verdaccio
|
||||
```
|
||||
|
||||
## Apache reverse proxy configuration
|
||||
config.yaml
|
||||
```yaml
|
||||
url_prefix: https://npm.your.domain.com
|
||||
```
|
||||
Apache virtual server configuration
|
||||
```apacheconfig
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerName npm.your.domain.com
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/npm.your.domain.com/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/npm.your.domain.com/privkey.pem
|
||||
SSLProxyEngine On
|
||||
ProxyRequests Off
|
||||
ProxyPreserveHost On
|
||||
AllowEncodedSlashes NoDecode
|
||||
ProxyPass / http://127.0.0.1:4873/ nocanon
|
||||
ProxyPassReverse / http://127.0.0.1:4873/
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
```
|
Loading…
Add table
Reference in a new issue