# Env

After installation, save the file well and remove it from the system if the system is not owned by only one user.

{% @github-files/github-code-block url="<https://github.com/stefanwerfling/flyingfish/blob/main/setup/.env>" %}

| Env-Name                | Description                                                                                                                                                                                                                                                                                                                                                              |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| MARIADB\_ROOT\_USERNAME | The main user of mariadb, by default `root` is used.                                                                                                                                                                                                                                                                                                                     |
| MARIADB\_ROOT\_PASSWORD | The password user of MariaDB, enter a sufficiently secure one here.                                                                                                                                                                                                                                                                                                      |
| MARIADB\_DATABASE       | Default database name is `flyingfish`.                                                                                                                                                                                                                                                                                                                                   |
| INFLUXDB\_URL           | Address to influxdb, this can be a separate installation. With the standard installation, the address is `http://10.103.0.5:8086`                                                                                                                                                                                                                                        |
| INFLUXDB\_USERNAME      | InfluxDB username.                                                                                                                                                                                                                                                                                                                                                       |
| INFLUXDB\_PASSWORD      | The password user of influxdb, enter a sufficiently secure one here.                                                                                                                                                                                                                                                                                                     |
| INFLUXDB\_ORG           | An Influxdb organisation name.                                                                                                                                                                                                                                                                                                                                           |
| INFLUXDB\_BUCKET        | An InfluxDB bucket name.                                                                                                                                                                                                                                                                                                                                                 |
| INFLUXDB\_RETENTION     | As for how long the data should be kept in the bucket, I recommend 4 weeks (4w).                                                                                                                                                                                                                                                                                         |
| INFLUXDB\_ADMIN\_TOKEN  | The InfluxDB admin token for the communication, enter a sufficiently secure token (char/number chain).                                                                                                                                                                                                                                                                   |
| HTTPSERVER\_PORT        | Intern HTTPS FlyingFish web interface listen port. Default is port `3000`.                                                                                                                                                                                                                                                                                               |
| REDIS\_SAVE             | Setting how a snapshot is saved from memory to the hard drive, default `20 1.`                                                                                                                                                                                                                                                                                           |
| REDIS\_LOGLEVEL         | Level name for logging, default is `warning.`                                                                                                                                                                                                                                                                                                                            |
| REDIS\_REQUIREPASS      | The password for the queries, enter a sufficiently secure one here.                                                                                                                                                                                                                                                                                                      |
| REDIS\_MAX\_MEMORY      | What is the maximum amount of RAM the Redis can use, default is `50mb.`                                                                                                                                                                                                                                                                                                  |
| LOGGING\_LEVEL          | <p>Which logging to use: </p><ul><li><code>error</code>: Write Log with all Error</li><li><code>warn</code>: Write Log with all Error and Warnings</li><li><code>info</code>: Write Log with all Error and Warnings and information</li><li><code>silly</code>: Write Log with all lots of prints by application</li></ul><p>Current standard is <code>silly</code>.</p> |
| HIMHIP\_USE             | <p>Enables the use of the service <em>how is my host IP.</em></p><ul><li><code>1</code> enable</li><li><code>0</code> disable</li></ul><p>Standard is enabled.</p>                                                                                                                                                                                                       |
| HIMHIP\_SECRET          | <p>The secret so that the service can communicate with the FlyingFish backend.<br>Choose a 10-15 character string with characters and numbers for the secret.</p>                                                                                                                                                                                                        |
| DYNDNSSERVER\_ENABLE    | <p>Activates the DynDns-Server in FlyingFish. Default is deactivated.</p><ul><li><code>1</code> enable</li><li><code>0</code> disable</li></ul>                                                                                                                                                                                                                          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://flying-fish.gitbook.io/flyingfish/index/installation/long-setup/env.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
