chore: restart the repository with a clean history
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
Squash the tree into one commit, drop docs/architecture.html, reset the version line to 0.3.0, consolidate the changelog, enable Renovate automerge for non-major updates and add AGENTS.md.
This commit is contained in:
438 files changed
+45070
No files matched your search
@@ -0,0 +1,56 @@
|
||||
# ⚙️ Configuration
|
||||
|
||||
The server reads a YAML file (`/app/data/config.yml` in the image, override the path with `FRISLIT_CONFIG`). Every
|
||||
key can also be set through an environment variable, which beats the file, and anything you save in the web UI
|
||||
beats both.
|
||||
|
||||
Nothing is required up front. Without a `baseDomain` the server starts in **setup mode** and serves only
|
||||
`/@frislit/**` until you finish the setup wizard in the browser.
|
||||
|
||||
```yaml
|
||||
listen: 0.0.0.0
|
||||
port: 8080
|
||||
baseDomain: frislit.example.com
|
||||
publicUrl: https://frislit.example.com
|
||||
trustProxy: true
|
||||
httpMode: subdomain
|
||||
gracePeriod: 30
|
||||
```
|
||||
|
||||
| Key | Environment variable | Default | Description |
|
||||
|---|---|---|---|
|
||||
| `listen` | `FRISLIT_LISTEN` | `0.0.0.0` | Address the HTTP server binds to. |
|
||||
| `port` | `FRISLIT_PORT` | `8080` | The one and only port. HTTP, WebSockets and the CLI control channel all use it. |
|
||||
| `baseDomain` | `FRISLIT_BASE_DOMAIN` | - (setup) | Your tunnel domain. Subdomain tunnels become `<id>.<baseDomain>`, path-mode tunnels live on `<baseDomain>` itself. |
|
||||
| `publicUrl` | `FRISLIT_PUBLIC_URL` | `https://<baseDomain>` | What the server prints as the public URL. Use `http://…` for local testing without TLS. |
|
||||
| `tlsMode` | `FRISLIT_TLS_MODE` | `proxy` | `proxy` if something terminates TLS in front of frislit, `acme` if frislit should get its own certificates. Set through the environment, it cannot be changed in the web UI. See [HTTPS](/https). |
|
||||
| `trustProxy` | `FRISLIT_TRUST_PROXY` | `false` | Use `X-Forwarded-Host`, `X-Forwarded-Proto` and `X-Forwarded-For` from nginx. Turn this on only when nothing but your proxy can reach the port: the IP allowlist and the login rate limit both believe whatever address these headers carry. |
|
||||
| `httpMode` | `FRISLIT_HTTP_MODE` | `subdomain` | How `frislit http` tunnels are exposed. `subdomain`: `https://<id>.<baseDomain>` (needs the wildcard DNS record and certificate). `path`: `https://<baseDomain>/@<id>`, bound per browser tab (no wildcard needed). |
|
||||
| `gracePeriod` | `FRISLIT_GRACE_PERIOD` | `30` | Seconds a tunnel id stays reserved after the owner's CLI drops. The CLI reconnects automatically and keeps the same URL/share code. Ctrl+C releases immediately. |
|
||||
|
||||
`listen` and `port` are only read at startup. Everything else can be changed in the web UI and takes effect
|
||||
immediately.
|
||||
|
||||
Other environment variables:
|
||||
|
||||
| Variable | Description |
|
||||
|---|---|
|
||||
| `FRISLIT_CONFIG` | Path to the YAML file. |
|
||||
| `FRISLIT_DATA_DIR` | Where the database is kept. `/app/data` in the image. |
|
||||
| `LOG_LEVEL` | `error`, `warn`, `info` (default) or `debug`. |
|
||||
|
||||
## 💾 Data directory
|
||||
|
||||
The data directory (`/app/data`, or `FRISLIT_DATA_DIR`) holds one file, `frislit.db`: accounts, sessions, devices,
|
||||
tunnel access rules, certificates, the requests a tunnel has served and the settings you changed in the web UI.
|
||||
|
||||
It is SQLite. Passwords are scrypt hashes and device tokens are stored hashed, so a copy of the file does not hand
|
||||
anyone a working login. The schema is created and upgraded automatically on startup.
|
||||
|
||||
Only settings you actually change in the UI are stored; anything you leave alone keeps coming from `config.yml` or
|
||||
the environment, which is why server configuration stays reviewable in a file you can put in git.
|
||||
|
||||

|
||||
|
||||
Back it up (or mount `/app/data` in Docker) to keep accounts, devices and access rules across restarts. Delete it
|
||||
to start over with the setup wizard.
|
||||
Reference in new issue
Block a user