-
Notifications
You must be signed in to change notification settings - Fork 297
Self hosting
Michael Koppen edited this page Nov 1, 2018
·
25 revisions
If you want to host Wire's web application on your own servers, you can make use of our Docker image.
| 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 (Note: URL DOES NOT end with a trailing slash) |
|
| BACKEND_WS | X | Sets the endpoint for the WebSocket connection, e.g. wss://staging-nginz-ssl.zinfra.io (Note: URL DOES NOT end with a trailing slash) |
|
| 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_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_BASE | Sets the host URL for the account service (password reset, account deletion, etc.), e.g. https://account.wire.com/ (Note: URL should end with a trailing slash) |
||
| URL_MOBILE_BASE | Sets the host URL for the mobile client, e.g. / (Note: URL should end with a trailing slash) |
||
| URL_TEAMS_BASE | Sets the host URL for the team settings service, e.g. https://teams.wire.com/ (Note: URL should end with a trailing slash) |
||
| URL_WEBSITE_BASE | Sets the host URL for the website, e.g. https://wire.com/ (Note: URL should end with a trailing slash) |
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. |