···1717| `LUMINA_DB_TYPE` | `"sqlite"` (not recommended for production) | The kind of database to use. Options are `postgres` or `sqlite`.<br /><br /><br />**OPTIONS:**<br />_With SQLite:_<br />- `LUMINA_SQLITE_FILE` `"instance.sqlite"` SQLite file to connect to. Always a relative path from the instance folder.<br /><br />_With PostGres DB:_<br />- `LUMINA_POSTGRES_PORT` `"5432"` The port to contact the database on. <br>- `LUMINA_POSTGRES_HOST` `"localhost"` The address to contact the database on.<br>- `LUMINA_POSTGRES_USERNAME` `"lumina"` The username to log in to the database with.<br>- `LUMINA_POSTGRES_PASSWORD` (none) The password to log in to the database with. If not set, Lumina will try without.<br>- `LUMINA_POSTGRES_DATABASE` `"lumina_config"` The database to use. <br> |
1818| `LUMINA_DB_SALT` | `"sal"` | The salting to use for some data on the database. |
1919| `LUMINA_SERVER_PORT` | `"8085"` | Port for Lumina to accept HTTP requests on. |
2020-| `LUMINA_SERVER_ADDR` | `"localhost"` | Address for Lumina to accept HTTP requests on. |
2020+| `LUMINA_SERVER_ADDR` | `127.0.0.1` | Address for Lumina to accept HTTP requests on. (usually `127.0.0.1` or `0.0.0.0`) |
2121| `LUMINA_SERVER_HTTPS` | `"false"` | Wether to use 'https' rather than 'http' in links, etc. (please do!) |
2222| `LUMINA_SYNCHRONISATION_IID` | `"localhost"` | A name Lumina uses when communicating with other instances, must be equal to where it's http is facing the public internet |
2323| `LUMINA_SYNCHRONISATION_INTERVAL` | `"30"` | Specifies the interval between syncs. Minimum is 30. |
+2-1
server/Cargo.toml
···2121cynthia_con = "0.1.1"
2222dotenv = "0.15.0"
2323tokio-postgres = { version = "0.7.13", features = ["with-uuid-1"] }
2424-tokio-sqlite = { version = "0.1.5", features = ["bundled"] }
2524bcrypt = "0.17.0"
2525+r2d2 = "0.8.10"
2626+r2d2_sqlite = "0.27.0"