mirror of
https://github.com/ViViDboarder/bitwarden_rs.git
synced 2024-11-22 21:26:38 +00:00
Update the build instruction for new Vault
This commit is contained in:
parent
1c57c9d8e0
commit
007e053e2f
28
BUILD.md
28
BUILD.md
@ -19,26 +19,20 @@ When run, the server is accessible in [http://localhost:80](http://localhost:80)
|
|||||||
### Install the web-vault
|
### Install the web-vault
|
||||||
Download the latest official release from the [releases page](https://github.com/bitwarden/web/releases) and extract it.
|
Download the latest official release from the [releases page](https://github.com/bitwarden/web/releases) and extract it.
|
||||||
|
|
||||||
Modify `web-vault/settings.Production.json` to look like this:
|
Apply the patch file from `docker/set-vault-baseurl.patch`:
|
||||||
```json
|
|
||||||
{
|
|
||||||
"appSettings": {
|
|
||||||
"apiUri": "/api",
|
|
||||||
"identityUri": "/identity",
|
|
||||||
"iconsUri": "/icons",
|
|
||||||
"stripeKey": "",
|
|
||||||
"braintreeKey": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, run the following from the `web-vault` directory:
|
|
||||||
```sh
|
```sh
|
||||||
npm install
|
# In the Vault repository directory
|
||||||
npx gulp dist:selfHosted
|
git apply /path/to/bitwarden_rs/docker/set-vault-baseurl.patch
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally copy the contents of the `web-vault/dist` folder into the `bitwarden_rs/web-vault` folder.
|
Then, build the Vault:
|
||||||
|
```sh
|
||||||
|
npm run sub:init
|
||||||
|
npm install
|
||||||
|
npm run dist
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally copy the contents of the `build` folder into the `bitwarden_rs/web-vault` folder.
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
The available configuration options are documented in the default `.env` file, and they can be modified by uncommenting the desired options in that file or by setting their respective environment variables. Look at the README file for the main configuration options available.
|
The available configuration options are documented in the default `.env` file, and they can be modified by uncommenting the desired options in that file or by setting their respective environment variables. Look at the README file for the main configuration options available.
|
||||||
|
Loading…
Reference in New Issue
Block a user