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
Copy file name to clipboardExpand all lines: docs/environment-variables.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,23 @@ The following environment variables can be used to configure fractal-web.
4
4
5
5
> Only when using `npm run dev` or `npm run preview` these variables are automatically read from `.env.development` and `.env` files. In production they must be set in the shell that starts the node process.
6
6
7
-
*`FRACTAL_SERVER_HOST`: represents the URL of the fractal-server application (e.g. http://localhost:8000); this variable is **required** and it should not contain a final slash;
7
+
*`FRACTAL_SERVER_HOST`: represents the URL of the fractal-server application (e.g. http://localhost:8000, or http://subdomain.example.org:8000); this variable is **required** and it should not contain a final slash;
8
8
*`AUTH_COOKIE_NAME`: the name of the cookie used to store the user session; the default value is `fastapiusersauth`;
9
9
*`AUTH_COOKIE_DOMAIN`: specifies which server can receive the cookie; **remember to set it in production**;
10
10
*`AUTH_COOKIE_PATH`: the URL path where the cookie will be available; the default value is `/`;
11
11
*`AUTH_COOKIE_SECURE`: sends the cookie only if the server is using HTTPS; the default value is `true`, can be set to `false` during development;
12
12
*`AUTH_COOKIE_SAME_SITE`: set the [SameSite](https://web.dev/articles/samesite-cookies-explained) attribute to the cookie; the default value is `lax`;
13
13
*`PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL`: the e-mail address displayed in the home page which can be used to send support requests; if the value is not set nothing is shown;
14
14
*`PUBLIC_UPDATE_JOBS_INTERVAL`: the delay in milliseconds which occurs between two background requests that check for job status updates; the default value is `3000`;
15
-
*`PUBLIC_OAUTH_CLIENT_NAME`: if set, the application enables the external account login via OAuth2; the name is used to create the authorization call sent to fractal-server;
15
+
*`PUBLIC_OAUTH_CLIENT_NAME`: if set, the application enables the external account login via OAuth2; the name is used to create the authorization call sent to fractal-server (see [configuration page](../oauth2/));
16
16
*`LOG_FILE`: the path of the file where logs will be written; by default is unset and no file will be created;
17
17
*`LOG_LEVEL_FILE`: the log level of logs that will be written to the file; the default value is `info`;
18
18
*`LOG_LEVEL_CONSOLE`: the log level of logs that will be written to the console; the default value is `warn`.
19
19
20
20
When running directly using `node` command these extra variables can also be configured:
21
21
22
22
*`PORT`: specifies the port where Svelte server will run; the default value is 5173;
23
-
*`ORIGIN` the URL where the app will be served (e.g. http://localhost:5173).
23
+
*`ORIGIN` the URL where the app will be served (e.g. http://localhost:5173, or https://subdomain.example.org).
0 commit comments