···51515252## Configuration
53535454-The config file only requires two informations: the port and the domain (for security headers).
5454+The config file only requires two informations: how to listen and the domain (for security headers).
5555```toml
5656domain = "lasa.example.org"
5757-port = 8000
5757+5858+[listen]
5959+tcp = ":8000"
5860```
59616062You can specify the legal notice with
6163```toml
6464+...
6265legal_notice_url = "https://example.org/legal"
6666+6767+[listen]
6868+...
6369```
64706571If you want to log 400 and 404 as warning, uncomment these lines:
6672```toml
7373+...
6774# if you want to log HTTP 404 responses
6875log_not_found = true
6976# if you want to log HTTP 400 responses
7077log_bad_request = true
7878+7979+[listen]
8080+...
8181+```
8282+8383+### Listen
8484+8585+Lasa can listen to an address or with a UNIX socket.
8686+The `tcp` option set the address and `unix` option set the path to the UNIX socket.
8787+```toml
8888+[listen]
8989+# listen to localhost on port 8000
9090+tcp = "127.0.0.1:8000"
9191+# listen to every address on port 8000
9292+tcp = ":8000"
9393+```
9494+```
9595+[listen]
9696+# listen to this UNIX socket
9797+unix = "/run/lasad.sock"
9898+```
9999+100100+If you prefer, you can use FastCGI instead of HTTP:
101101+```toml
102102+[listen]
103103+...
104104+fastcgi = true
71105```
7210673107### Redis
+2
lasad.1.scd
···4242*cache section* contains information to connect to a _Valkey_ database.
4343*cache.auth subsection* is used to provide login information.
44444545+*listen section* is used to configure how *lasad* is connected to the external world.
4646+4547# SEE ALSO
46484749_lasa_(1)