Skip to content

Commit

Permalink
docs: improve url_prefix info
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Aug 22, 2021
1 parent d036190 commit 586f1b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion website/docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ publish:

### 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
url_prefix: /verdaccio/
Expand Down
9 changes: 4 additions & 5 deletions website/docs/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ For installing at root path, `/`, on the server

### Configuration with SSL {#configuration-with-ssl}

Apache virtual server configuration
Apache virtual server configuration.

````
apacheconfig
````apache
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName npm.your.domain.com
Expand All @@ -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).

````
````nginx
upstream verdaccio_v4 {
server verdaccio_relative_path_v4:4873;
keepalive 8;
Expand Down Expand Up @@ -115,7 +114,7 @@ server {

## SSL example {#ssl-example}

````
````nginx
server {
listen 80;
return 302 https://$host$request_uri;
Expand Down

0 comments on commit 586f1b0

Please sign in to comment.