Skip to content

Commit

Permalink
Merge pull request #6793 from nextcloud/fix/serve_reverse_slash
Browse files Browse the repository at this point in the history
Add missing trailing slash in reverse proxy config docs
  • Loading branch information
juliusknorr authored Dec 17, 2024
2 parents 1353d69 + 81b80ef commit 3211411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ Follow its development setup and then continue here.
To use the advantages of `vite serve` with hot module replacement (HMR) and not have to recompile the JS assets after each code change, do the following:

1. Configure your webserver to redirect requests to `/apps/text/` to the vite serve server.
When using [nextcloud-docker-dev](https://github.com/juliusknorr/nextcloud-docker-dev), add the following snippet to `data/nginx/vhost.d/nextcloud.local` and restart the proxy container. You might have to replace `/apps/text` with e.g. `/apps-extra/text` depending on where the text app resides in your dev setup.
When using [nextcloud-docker-dev](https://github.com/juliusknorr/nextcloud-docker-dev), add the following snippet to `data/nginx/vhost.d/nextcloud.local` and restart the proxy container. You might have to replace `/apps/text/` with e.g. `/apps-extra/text/` depending on where the text app resides in your dev setup.
```
location /apps/text/ {
proxy_pass http://host.docker.internal:5173/apps/text;
proxy_pass http://host.docker.internal:5173/apps/text/;
# fallback to nextcloud server if vite serve doesn't answer
error_page 502 = @fallback;
}
Expand Down

0 comments on commit 3211411

Please sign in to comment.