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: web/docs/getting-started/config.md
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,18 @@ title: Configuration
5
5
6
6
You can configure the LLMStack installation by editing the `.env` file in the root directory of the installation. The `.env` file is a simple text file with key-value pairs. You can edit the file using any text editor. Following is the list of available configuration options:
|`SECRET_KEY`| Secret key for your installation. This is the key used for signing data. **_Make sure this is changed_**| Hardcoded random string. |
11
-
|`CIPHER_KEY_SALT`| Salt used to encrypt user keys and other sensitive data |`salt`|
12
-
|`DATABASE_PASSWORD`| Password for the database user. This is used when setting up the initial db user and for connecting to the database later |`llmstack`|
13
-
|`POSTGRES_VOLUME`| Path to the directory where the database data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/postgres_llmstack`|
14
-
|`REDIS_VOLUME`| Path to the directory where the redis data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/redis_llmstack`|
15
-
|`WEAVIATE_VOLUME`| Path to the directory where the weaviate data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/weaviate_llmstack`|
16
-
|`LLMSTACK_PORT`| Port on which the LLMStack web server will listen. |`3000`|
17
-
|`LOG_LEVEL`| Log level for the LLMStack web server. |`ERROR`|
18
-
|`ALLOWED_HOSTS`| Comma separated list of allowed hosts for the LLMStack API server server. |`localhost`|
|`SECRET_KEY`| Secret key for your installation. This is the key used for signing data. **_Make sure this is changed_**| Hardcoded random string. |
11
+
|`CIPHER_KEY_SALT`| Salt used to encrypt user keys and other sensitive data |`salt`|
12
+
|`DATABASE_PASSWORD`| Password for the database user. This is used when setting up the initial db user and for connecting to the database later |`llmstack`|
13
+
|`POSTGRES_VOLUME`| Path to the directory where the database data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/postgres_llmstack`|
14
+
|`REDIS_VOLUME`| Path to the directory where the redis data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/redis_llmstack`|
15
+
|`WEAVIATE_VOLUME`| Path to the directory where the weaviate data will be stored. By default, data is stored in `/tmp` which is ephemeral. Make sure to change this to a persistent directory if you want to persist the data. |`/tmp/weaviate_llmstack`|
16
+
|`LLMSTACK_PORT`| Port on which the LLMStack web server will listen. |`3000`|
17
+
|`LOG_LEVEL`| Log level for the LLMStack web server. |`ERROR`|
18
+
|`ALLOWED_HOSTS`| Comma separated list of allowed hosts for the LLMStack API server server. If you are running LLMStack on a non localhost domain, you need to add allowed hosts |`localhost`|
19
+
|`CSRF_TRUSTED_ORIGINS`| Comma separated list of trusted origins. If you are running LLMStack on a non localhost domain, you need to add the domain to this list. |`http://127.0.0.1:{LLMSTACK_PORT},http://localhost:{LLMSTACK_PORT}`|
Copy file name to clipboardExpand all lines: web/docs/getting-started/intro.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ LLMStack comes with a default admin account whose credentials are `admin` and `p
46
46
/>
47
47
48
48
:::note
49
-
If you are deploying LLMStack on a server, make sure to update `ALLOWED_HOSTS` in `.env` file to include the hostname of your server. Refer to the [configuration](config.md) section for more information.
49
+
If you are deploying LLMStack on a server, make sure to update `ALLOWED_HOSTS`and `CSRF_TRUSTED_ORIGINS`in `.env` file to include the hostname of your server. Refer to the [configuration](config.md) section for more information.
50
50
:::
51
51
52
52
Instead of downloading the release, you can also clone the repository and run the above commands in the cloned repository.
@@ -86,3 +86,7 @@ Datasources are used to provide context to LLMs to build applications that can p
86
86
### Variables
87
87
88
88
Variables are used in LLMStack to provide dynamic values to the processors. For example, you can use variables to provide the name of the user to the processors. Variables are provided in the form `{{name}}` where `name` is the variable name. In App editor, data from previous processors/steps is available as variables and can be used in subsequent processors/steps.
89
+
90
+
:::tip
91
+
If you have questions, suggestions or need help, feel free to join our [Discord server](https://discord.gg/3JsEzSXspJ) or start a discussion on our [Github Discussions](https://github.com/trypromptly/LLMStack/discussions) page.
0 commit comments