bitwarden / desktop

The desktop vault (Windows, macOS, & Linux).
https://bitwarden.com
GNU General Public License v3.0
3.55k stars 401 forks source link

where to insert our own baseURL? #485

Closed pdarcos closed 4 years ago

pdarcos commented 4 years ago

Hi again,

I thought the logical place to insert our own baseURL for our own server would be here

I tried replacing the . with my own URL (I've tried with and without the https) but when I then run npm run build it fails.

Is there another place where I should insert my own? I know that users can just go to Settings and change it there but that's not very practical with older members of the family that aren't very computer literate.

Thanks

pdarcos commented 4 years ago

Anyone know where to set our self-deployed server URL?

pdarcos commented 4 years ago

Sorry to bug you @kspearrin but can you point me to the right file I need to change?

I figured this would be an easy change but I can't find where vault.bitwarden.com is hardcoded.

Thanks

kspearrin commented 4 years ago

default URLS are set in jslib/services/api.service.ts and jslib/services/environment.service.ts

pdarcos commented 4 years ago

Thanks @kspearrin

FYI your ubuntu app no longer builds after you updated jslib last night.