You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- These can be provided as environment variables or in a `.env` file in the directory from which `pydatalab` is launched.
17
17
3. Web app configuration, such as the URL of the relevant *datalab* API and branding (logo URLs, external homepage links).
18
18
- These are typically provided as a `.env` file in the directory from which the webapp is built/served.
19
+
- The main options include (a full list can be found in the `docker-compose.yml` file):
20
+
-`VUE_APP_API_URL`: the URL of the *datalab* API, which is used by the web app to communicate with the server.
21
+
-`VUE_APP_LOGO_URL`: the URL of an image to use as the logo header in the web app.
22
+
-`VUE_APP_HOMEPAGE_URL`: a URL to provide as a link from the web app header.
23
+
-`VUE_APP_EDITABLE_INVENTORY`: whether the inventory can be edited by non-admin users in the web app.
24
+
-`VUE_APP_WEBSITE_TITLE`: the title of the web app, which is displayed in the browser tab and header.
25
+
-`VUE_APP_QR_CODE_RESOLVER_URL`: the URL of a service that can resolve QR codes to *datalab* entries, which is used by the web app to display QR codes for entries (see [datalab-org/datalab-purl](https://github.com/datalab-org/datalab-purl) for more information).
26
+
-`VUE_APP_AUTOMATICALLY_GENERATE_ID_DEFAULT`: whether to automatically generate IDs for new entries in the web app by default, or require a checkbox to be ticked at item creation.
Copy file name to clipboardExpand all lines: pydatalab/docs/deployment.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,9 @@ Some things to consider:
52
52
- Typically you will need to run the app and API on two different subdomains.
53
53
54
54
These can be provided perhaps by an IT department, or by configuring DNS settings on your own domain to point to the server.
55
-
You will need to configure the app such so that it points at the relevant hosted API (see [app `.env` description](config.md#app).
55
+
56
+
You will need to configure the app such so that it points at the relevant hosted API (see [app `.env` description](config.md#app)), via the `VUE_APP_API_URL` variable.
57
+
You can also control other options via several `VUE_APP_*` environment variables listed at the link above.
56
58
57
59
There will inevitably be specific infrastructure configuration required for your
58
60
instance, for example, the mounting of disks into the API container to allow for
@@ -77,7 +79,7 @@ The process may look something like the following:
77
79
- Add *datalab* as a [Git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules):
0 commit comments