1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Go to file
Matt Gibson 66bd8be2c9
Set urls from config file (#1151)
* Set environment URLs in webpack config.

* Provide non NULL dev server

* QA env uses the pq TLD

* Include icons in qa env

* Move base configs to develop.

local configurations should be done in the `./config/local.json` file.

* Fix config override loading to default to development

* Standardize url formatting

* Limit QA settings to those set in production

* Set self hosted in a config

* Specify cloud instead of production

Self hosted and cloud are both production environments.
The ENV setting is used to specify the env type while
NODE_ENV specifies whether development error handling and services.

* Update config instructions

* Remove invalid json

* Change env `production` references to `cloud`

* Fix formatting
2021-08-25 13:15:31 -05:00
.github/workflows Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
bitwarden_license Refactor orgnaization policy management (#1147) 2021-08-25 16:10:17 +02:00
config Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
jslib@add4b2f3e9 Refactor orgnaization policy management (#1147) 2021-08-25 16:10:17 +02:00
src Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
.dockerignore docker build updates 2018-07-18 15:21:51 -04:00
.editorconfig Add support for Emergency Access (#707) 2020-12-22 10:57:44 -05:00
.gitattributes Added .gitattributes file to files requiring LF endings are properly checked out on Windows. (#279) 2018-10-18 12:15:54 -04:00
.gitignore Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
.gitmodules use https for submodule 2018-07-09 16:52:46 -04:00
config.js Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
CONTRIBUTING.md Docs contrib (#696) 2020-11-10 10:52:09 -05:00
crowdin.yml Added mapping for Serbian Cyrillic (#1088) 2021-07-19 14:31:44 -04:00
dev-server.shared.pem rename dev cert to shared 2018-06-05 11:14:53 -04:00
Dockerfile docker health check 2019-07-26 11:59:59 -04:00
entrypoint.sh Update entrypoint.sh (#1019) 2021-06-08 14:01:46 -04:00
gulpfile.js sweetalert: ported to sweetalert2 and simplified code. (#465) 2020-03-02 13:52:09 -05:00
ISSUE_TEMPLATE.md Update ISSUE_TEMPLATE.md 2020-03-06 08:27:39 -05:00
LICENSE_BITWARDEN.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
LICENSE_GPL.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
LICENSE.txt add support for bitwarden license 2021-06-15 10:25:45 -04:00
package-lock.json Version bump 2.22.2 (#1142) 2021-08-20 16:13:42 -04:00
package.json Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
README.md Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00
SECURITY.md
tsconfig.json [Provider] Add support for managing providers (#1014) 2021-07-21 11:32:27 +02:00
tslint.json Fix glob processing in npm. Ban single param parens (#818) 2021-02-03 11:41:33 -06:00
webfonts.list gulp webfonts task as part of build 2018-07-18 10:54:22 -04:00
webpack.config.js Set urls from config file (#1151) 2021-08-25 13:15:31 -05:00

The Bitwarden web project is an Angular application that powers the web vault (https://vault.bitwarden.com/).

Github Workflow build on master Crowdin DockerHub gitter chat

Build/Run

Requirements

Run the app

For local development, run the app with:

npm install
npm run build:watch

You can now access the web vault in your browser at https://localhost:8080.

If you want to point the development web vault to the production APIs, you can run using:

npm install
ENV=production npm run build:watch

You can also manually adjusting your API endpoint settings by adding config/local.json overriding any of the following values:

{
    "proxyApi": "http://your-api-url",
    "proxyIdentity": "http://your-identity-url",
    "proxyEvents": "http://your-events-url",
    "proxyNotifications": "http://your-notifications-url",
    "proxyPortal": "http://your-portal-url",
    "allowedHosts": ["hostnames-to-allow-in-webpack"],
    "urls": {
      
    }
}

Where the urls object is defined by the Urls type in jslib. To pick up the overrides in the newly created config/local.json file, run the app with:

npm run build:dev:watch

Contribute

Code contributions are welcome! Please commit any pull requests against the master branch. Learn more about how to contribute by reading the CONTRIBUTING.md file.

Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the SECURITY.md file.