-
-
Notifications
You must be signed in to change notification settings - Fork 103
Setting up Lumen
Naim A edited this page Dec 19, 2020
·
1 revision
- Install Rust: https://rustup.rs/
- Build Lumen:
git clone https://github.com/naim94a/lumen cd lumen cargo build --release
- Copy
target/release/lumen[.exe]
to a more permanent directory. - Execute
[./]lumen[.exe] -c config.toml
.
- Install a postgresql server.
- Create a database, and (optional) create a user:
createdb lumendb
- Create tables for lumen in the database:
psql < schema.sql
- On some platforms, you may have to allow remote tcp connections to the database by modifying pg_hba.conf
Lumen's configuration is a simple TOML file. Here you can find a template with comments:
[lumina]
# Set the interface on which Lumen will listen on.
bind_addr = "0.0.0.0:1234"
# Sets if IDA must use TLS or not.
use_tls = false
# This section is only required when `use_tls` is set to true.
[lumina.tls]
# Specify the server's certificate.
# Clients connecting to the server must match this certificate.
# If the certificate is password protected, the password can be specified in the `PKCSPASSWD` environment variable.
server_cert = "private/certs/animul.p12"
[database]
# Specifies a postgresql connection string. All variables can be found here: https://docs.rs/tokio-postgres/0.6.0/tokio_postgres/config/struct.Config.html
connection_info = "host=127.0.0.1 port=32768 user=postgres password=1"
# Sets if the database connection should be made using TLS.
use_tls = false
# If the database requires a secure connection, paths to server-ca and client-id certificates can be set here:
#server_ca = "db_ca.pem"
#client_id = "db_id.p12"