Skip to content

Self hosting

Benny Neugebauer edited this page Aug 5, 2019 · 25 revisions

Preface

If you want to host Wire's web application on your own servers, you can make use of our Docker image.

Environment variables

General configuration

Variable Required Default Description
APP_BASE Specifies the user facing domain of the app, e.g. https://app.wire.com
APP_NAME Specifies the name of the application, e.g. Webapp
ANALYTICS_API_KEY Sets the tracking API key.
RAYGUN_API_KEY Sets the Raygun error reporting API key.
BACKEND_REST X Sets the endpoint for backend REST calls, e.g. https://staging-nginz-https.zinfra.io
BACKEND_WS X Sets the endpoint for the WebSocket connection, e.g. wss://staging-nginz-ssl.zinfra.io
ENFORCE_HTTPS true Wether the server should enforce HTTPS.
FEATURE_CHECK_CONSENT true Feature toggle for the user consent check. Can be set to true or false.
FEATURE_ENABLE_ACCOUNT_REGISTRATION true Feature toggle for account registration. Can be set to true or false.
FEATURE_ENABLE_DEBUG false Feature toggle for debug utils. Can be set to true or false.
FEATURE_PERSIST_TEMPORARY_CLIENTS true Wether the temporary clients should use IndexedDB. If set to false, they will use an in-memory database.
FEATURE_DEFAULT_LOGIN_TEMPORARY_DEVICE false Wether the pre-select a temporary client on login page.
FEATURE_ENABLE_PHONE_LOGIN true Feature toggle for the log in with phone number. Can be set to true or false.
FEATURE_ENABLE_SSO true Feature toggle for the log in via Single Sign On. Can be set to true or false.
FEATURE_ENABLE_USERNAME_LOGIN true Feature toggle for the log in with a username. Can be set to true or false.
FEATURE_SHOW_LOADING_INFORMATION false Feature toggle for additional application loading information. Can be set to true or false.
NODE_DEBUG Used to decide which module will print debug information, e.g. @wireapp/*. Read more
NODE_ENV production Sets the environment operation mode. Possible values are production & development. This setting affects the server behaviour and the web client bundling. If set to development, all custom environment variables will be deactivated. Read more
PORT 21080 Sets the port the server is running on.
URL_ACCOUNT_BASE Sets the host URL for the account service (password reset, account deletion, etc.), e.g. https://account.wire.com
URL_MOBILE_BASE Sets the host URL for the mobile client
URL_PRIVACY_POLICY Sets the URL for the privacy policy
URL_SUPPORT_BASE Sets the URL for the support website
URL_TEAMS_BASE Sets the host URL for the team settings service, e.g. https://teams.wire.com
URL_TERMS_OF_USE_PERSONAL Sets the URL for the personal terms of use
URL_TERMS_OF_USE_TEAMS Sets the URL for the teams terms of use
URL_WEBSITE_BASE Sets the host URL for the website, e.g. https://wire.com
GOOGLE_WEBMASTER_ID Sets the verification ID for Google webmasters.

Content Security Policy

Multiple entries separated by comma, e.g. https://*.wire.com, https://*.zinfra.io, 'self'

Variable Description
CSP_EXTRA_CONNECT_SRC Adds additional CSP connect-src entries. The default already includes BACKEND_REST & BACKEND_WS.
CSP_EXTRA_DEFAULT_SRC Adds additional CSP default-src entries.
CSP_EXTRA_FONT_SRC Adds additional CSP font-src entries.
CSP_EXTRA_FRAME_SRC Adds additional CSP frame-src entries.
CSP_EXTRA_IMG_SRC Adds additional CSP img-src entries.
CSP_EXTRA_MANIFEST_SRC Adds additional CSP manifest-src entries.
CSP_EXTRA_MEDIA_SRC Adds additional CSP media-src entries.
CSP_EXTRA_OBJECT_SRC Adds additional CSP object-src entries.
CSP_EXTRA_PREFETCH_SRC Adds additional CSP prefetch-src entries.
CSP_EXTRA_SCRIPT_SRC Adds additional CSP script-src entries.
CSP_EXTRA_STYLE_SRC Adds additional CSP style-src entries.
CSP_EXTRA_WORKER_SRC Adds additional CSP worker-src entries.
Clone this wiki locally