Skip to content

Self hosting

Michael Koppen edited this page Jan 17, 2019 · 2 revisions

Preface

If you want to host Wire's account management 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://account.wire.com/
APP_NAME Specifies the name of the application, e.g. Wire Account Management
COMPANY_NAME Specifies the name of the company, e.g. Wire
PIWIK_HOSTNAME Sets the Piwik hostname.
PIWIK_ID Sets the Piwik ID.
BACKEND_REST X Sets the endpoint for backend REST calls, e.g. https://staging-nginz-https.zinfra.io
ENFORCE_HTTPS true Wether the server should enforce HTTPS.
FEATURE_ENABLE_DEBUG false Feature toggle for debug utils. 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_DELETE_SURVEY Sets the URL for the survey after account deletion.
URL_DOWNLOAD_ANDROID_BASE Sets the Android download URL.
URL_DOWNLOAD_IOS_BASE Sets the iOS download URL.
URL_DOWNLOAD_OSX_BASE Sets the macOS download URL.
URL_DOWNLOAD_WINDOWS_BASE Sets the Windows download URL.
URL_REDIRECT_PHONE_BASE Sets the mobile redirect URL after the phone verification.
URL_REDIRECT_RESET_BASE Sets the mobile redirect URL after resetting the password.
URL_REDIRECT_VERIFY_BASE Sets the mobile redirect URL after the email verification.
URL_SUPPORT_BASE Sets the support URL.
URL_TEAMS_BASE Sets the team management URL.
URL_WEBAPP_BASE Sets the webapp URL.
URL_WEBSITE_BASE Sets the website URL.
URL_OPEN_GRAPH_IMAGE Sets the URL to the image when rendering OpenGraph embeds.

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.
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