Add possible solution to solve trailing slash "/" issue

Wang Jiaxiang 2020-07-14 20:08:06 +08:00
parent 084fdc4025
commit 79cc4440a7

@ -23,6 +23,17 @@ Simply configure your domain URL to include the base dir. For example, suppose y
4. Restart bitwarden_rs.
5. You should now be able to access the web vault at `https://bitwarden.example.com/base-dir/` (note the trailing slash). For reasons not entirely clear, you'll probably run into issues if you use `https://bitwarden.example.com/base-dir` (without the trailing slash).
6. Configure your apps or browser extensions to use `https://bitwarden.example.com/base-dir`. If you add a trailing slash, the apps and extensions will automatically remove it before saving.
7. Note over **5**. The trailing slash `/` issue could be solved by appending `/` after the route location string. For example, in nginx.
```
location /my-base-path {
# This config would cause `/` issue
}
location /my-base-path-2/ {
# This config works perfectly
}
```
## Reverse proxying