Skip to content

Commit 323fc90

Browse files
committed
Small changes to quickstart/variables docs
1 parent 1a87118 commit 323fc90

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/environment-variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ The following environment variables can be used to configure fractal-web.
44

55
> 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.
66
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;
88
* `AUTH_COOKIE_NAME`: the name of the cookie used to store the user session; the default value is `fastapiusersauth`;
99
* `AUTH_COOKIE_DOMAIN`: specifies which server can receive the cookie; **remember to set it in production**;
1010
* `AUTH_COOKIE_PATH`: the URL path where the cookie will be available; the default value is `/`;
1111
* `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;
1212
* `AUTH_COOKIE_SAME_SITE`: set the [SameSite](https://web.dev/articles/samesite-cookies-explained) attribute to the cookie; the default value is `lax`;
1313
* `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;
1414
* `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/));
1616
* `LOG_FILE`: the path of the file where logs will be written; by default is unset and no file will be created;
1717
* `LOG_LEVEL_FILE`: the log level of logs that will be written to the file; the default value is `info`;
1818
* `LOG_LEVEL_CONSOLE`: the log level of logs that will be written to the console; the default value is `warn`.
1919

2020
When running directly using `node` command these extra variables can also be configured:
2121

2222
* `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).
2424

2525
## Common issues related to environment variables
2626

docs/quickstart.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ FRACTAL_WEB_VERSION=1.1.0 && NODE_MAJOR_VERSION=20 && wget -qO- "https://github.
2626

2727
**Note**: this will unpack in the current working directory the file `package.json` and the folders `build` and `node_modules`.
2828

29-
To start the application installed in this way see the section "Run fractal-web from the build folder".
29+
To start the application installed in this way see the section [Run fractal-web from the build folder](#run-fractal-web-from-the-build-folder) below.
3030

3131
## Set environment variables
3232

@@ -44,17 +44,16 @@ You can create a script with the following content to run fractal-web installed
4444
export FRACTAL_SERVER_HOST=http://localhost:8000
4545
export PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL=help@localhost
4646
export PUBLIC_OAUTH_CLIENT_NAME=
47-
# remember to set this in production
47+
# remember to set this in production (e.g. subdomain.example.org)
4848
export AUTH_COOKIE_DOMAIN=
49-
# set this to true in production
50-
export AUTH_COOKIE_SECURE=false
5149

5250
export ORIGIN=http://localhost:5173
5351
export PORT=5173
5452

5553
export LOG_FILE=fractal-web.log
56-
export LOG_LEVEL_FILE=info
57-
export LOG_LEVEL_CONSOLE=warn
54+
# default values for logging levels (uncomment if needed)
55+
# export LOG_LEVEL_FILE=info
56+
# export LOG_LEVEL_CONSOLE=warn
5857

5958
# default values are usually fine for the following variables; remove comments if needed
6059
#export AUTH_COOKIE_NAME=fastapiusersauth

0 commit comments

Comments
 (0)