Admin ConsoleDeploy Client Apps

Konfigurera klienter för din server

När du använder en Bitwarden-server som är självvärd i en affärsmiljö, kanske administratörer vill centralt konfigurera klientapplikationsinställningar (särskilt Server URL) innan de distribueras till användare med en plattform för hantering av slutpunkter. Inställningar tillämpas vid installation av klientapplikationen. Dessa processer kan också vara användbara om du använder en Bitwarden Cloud EU-server.

Processen för att göra det kommer att vara olika för varje klientapplikation:

Webbläsartillägg

Chrome och Chromium

Följande steg förutsätter att användare ännu inte har webbläsartillägget Bitwarden installerat på sina maskiner. Om de gör det måste de återställa till förkonfigurerade inställningar, vilket de uppmanas att göra när de följer detta arbetsflöde:

To pre-configure environment URLs for Linux:

  1. Create one of the following directory structures if they do not already exist on your system:

    • For Chrome, /etc/opt/chrome/policies/managed/

    • For Chromium, /etc/opt/chromium/policies/managed/

  2. In the managed folder, create a bitwarden.json file with the following contents:

    Bash
    { "3rdparty": { "extensions": { "nngceckbapebfimnlniiiahkandclblb": { "environment": { "base": "https://my.bitwarden.server.com" } } } } }

    The extension ID (nngceckbapebfimnlniiiahkandclblb) will vary depending on your installation method. You can find your extension ID by navigating to your browser's extension menu (for example, chrome://extensions).

    Most installations will only require the "base": URL, however some unique setups may require you to enter URLs for each service independently:

    Bash
    { "3rdparty": { "extensions": { "nngceckbapebfimnlniiiahkandclblb": { "environment": { "base": "https://my.bitwarden.server.com", "webVault": "https://my.bitwarden.server.com", "api": "https://my.bitwarden.server.com", "identity": "https://my.bitwarden.server.com", "icons": "https://my.bitwarden.server.com", "notifications": "https://my.bitwarden.server.com", "events": "https://my.bitwarden.server.com" } } } } }

    note

    If you'll be using the Chrome or Chromium Web Store version of Bitwarden, you can follow these instructions to force install Bitwarden on end-user machines when you distribute managed policies. You can skip overlapping steps, like creating required directories.

  3. As you will need to deploy these files to users' machines, we recommend making sure only admins can write files in the /policies directory.

  4. Using your preferred software distribution or MDM tool, deploy the following to users' machines:

    • The Chrome or Chromium-based browser

    • /etc/opt/{chrome or chromium}/policies/managed/bitwarden.json

tip

For more help, refer to Google's Chrome Browser Quick Start for Linux guide.

Firefox

To pre-configure environment URLs for Linux:

  1. Create a directory /etc/firefox/policies:

    Bash
    mkdir -p /etc/firefox/policies

  2. As you will need to deploy this directory and the files in it to users' machines, we recommend making sure old admins can write files in the /policies directory:

    Bash
    chmod -R 755 /etc/firefox/policies
  3. Create a policies.json file in /etc/firefox/policies and add the following contents:

    Bash
    { "policies": { "3rdparty": { "Extensions": { "{446900e4-71c2-419f-a6a7-df9c091e268b}": { "environment": { "base": "https://my.bitwarden.server.com" } } } } } }

    Most installations will only require the "base": URL, however some unique setups may require you to enter URLs for each service independently:

    Bash
    { "policies": { "3rdparty": { "Extensions": { "{446900e4-71c2-419f-a6a7-df9c091e268b}": { "environment": { "base": "https://my.bitwarden.server.com", "webVault": "https://my.bitwarden.server.com", "api": "https://my.bitwarden.server.com", "identity": "https://my.bitwarden.server.com", "icons": "https://my.bitwarden.server.com", "notifications": "https://my.bitwarden.server.com", "events": "https://my.bitwarden.server.com" } } } } } }

  4. Using your preferred software distribution or MDM tool, deploy /etc/firefox/policies/policies.json to users' machines.

note

In order to centrally deploy the Bitwarden browser extension to EU servers, base and notifications must be set to the EU cloud. For example:

Plain Text
"base": "https://vault.bitwarden.eu" "notifications": "https://notifications.bitwarden.eu"

If enabled correctly, user's browser extensions will display Logging in on: self-hosted but will still connect to bitwarden.eu.

Skrivbordsappar

För att centralt konfigurera Desktop-appen för distribution, slutför du först följande steg på en enskild arbetsstation:

  1. Installera Desktop-appen. Om du använder Windows, installera Bitwarden tyst som administratör med hjälp av installer.exe /allusers /S (se NSIS-dokumentationen).

  2. Navigera till skrivbordsappens lokalt lagrade inställningar. Den här katalogen är olika beroende på ditt operativsystem (t.ex. %AppData%\Bitwarden på Windows, ~/Library/Application Support/Bitwarden på macOS). Hitta din katalog.

  3. Öppna filen data.json i katalogen.

  4. Redigera data.json för att konfigurera Desktop-appen efter önskemål. Skapa i synnerhet följande objekt för att konfigurera appen med din egen server-URL:

    Bash
    "global_environment_environment": { "region": "Self-hosted", "urls": { "base": "self-host.com" } }
    tip

    Customers using Bitwarden cloud servers may instead set "region": to "US" or "EU" to connect to those servers.

  5. När du har konfigurerat som du vill ha den använder du valfri slutpunktshanteringslösning (som Jamf) för att distribuera den förkonfigurerade Desktop-appen som en mall.

    note

    As an alternative to manually configuring the data.json file, you can assign environmentUrls using the Bitwarden desktop app. Select your desired region using the desktop app GUI, then close the app and locate your data.json file in order to copy the environment variable information.

Om användare upplever problem med grafik eller prestanda, innehåller Bitwarden inställningar som kan justeras för att förbättra prestandan. Se vanliga frågor om lösenordshanteraren.

Mobilappar

De flesta Mobile Device Management (MDM) eller Enterprise Mobility Management (EMM)-lösningar tillåter administratörer att förkonfigurera applikationer innan de distribueras på ett standardsätt. För att förkonfigurera Bitwarden Mobile-appar för att använda din självvärdade server-URL, konstruera följande applikationskonfiguration:

Webbapp

För användare av webbappen rekommenderar Bitwarden att du använder din slutpunkt, grupppolicy eller hanteringsverktyg för mobila enheter för att ställa in ett bokmärke eller skrivbordsgenväg som pekar på lämplig webbapp-URL (till exempel https://vault.bitwarden.eu eller din egen server).

Lär dig hur du distribuerar hanterade bokmärken med Googles administratörskonsol.