0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

docs: improve url_prefix info

This commit is contained in:
Juan Picado 2021-08-22 10:25:40 +02:00
parent d036190aff
commit 586f1b0684
2 changed files with 5 additions and 6 deletions

View file

@ -149,7 +149,7 @@ publish:
### URL Prefix {#url-prefix} ### URL Prefix {#url-prefix}
The prefix is intended to be used when the server runs behinds the proxy, check the **reverse proxy setup** page for more details. The prefix is intended to be used when the server runs behinds the proxy and won't work properly if is used without a reverse proxy, check the **reverse proxy setup** page for more details.
```yaml ```yaml
url_prefix: /verdaccio/ url_prefix: /verdaccio/

View file

@ -37,10 +37,9 @@ For installing at root path, `/`, on the server
### Configuration with SSL {#configuration-with-ssl} ### Configuration with SSL {#configuration-with-ssl}
Apache virtual server configuration Apache virtual server configuration.
```` ````apache
apacheconfig
<IfModule mod_ssl.c> <IfModule mod_ssl.c>
<VirtualHost *:443> <VirtualHost *:443>
ServerName npm.your.domain.com ServerName npm.your.domain.com
@ -62,7 +61,7 @@ Apache virtual server configuration
The following snippet is a full `docker` example can be tested in our [Docker examples repository](https://github.com/verdaccio/verdaccio/tree/5.x/docker-examples/reverse_proxy/nginx). The following snippet is a full `docker` example can be tested in our [Docker examples repository](https://github.com/verdaccio/verdaccio/tree/5.x/docker-examples/reverse_proxy/nginx).
```` ````nginx
upstream verdaccio_v4 { upstream verdaccio_v4 {
server verdaccio_relative_path_v4:4873; server verdaccio_relative_path_v4:4873;
keepalive 8; keepalive 8;
@ -115,7 +114,7 @@ server {
## SSL example {#ssl-example} ## SSL example {#ssl-example}
```` ````nginx
server { server {
listen 80; listen 80;
return 302 https://$host$request_uri; return 302 https://$host$request_uri;