For now? I'm experimenting on an old concept.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update README and such

+35 -23
+29 -18
README.MD
··· 12 12 Environment variables can be set in the _environment_ before run, but Lumina prefers them to be loaded from 13 13 `$LUMINAFOLDER/.env`. 14 14 15 - | NAME | DEFAULT | FOR | 16 - | -------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------- | 17 - | `LUMINA_POSTGRES_PORT` | `5432` | The port to contact the database on. | 18 - | `LUMINA_POSTGRES_HOST` | `localhost` | The address to contact the database on. | 19 - | `LUMINA_POSTGRES_USERNAME` | `lumina` | The username to log in to the database with. | 20 - | `LUMINA_POSTGRES_PASSWORD` | - | The password to log in to the database with. If not set, Lumina will try without. | 21 - | `LUMINA_POSTGRES_DATABASE` | `lumina_config` | The database to use. | 22 - | `LUMINA_REDIS_URL` | `redis://127.0.0.1/` | Redis URL to connect to. | 23 - | `LUMINA_DB_SALT` | `sal` | The salting to use for some data on the database. | 24 - | `LUMINA_SERVER_PORT` | `8085` | Port for Lumina to accept HTTP requests on. | 25 - | `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`) | 26 - | `LUMINA_SERVER_HTTPS` | `false` | Whether to use 'https' rather than 'http' in links, etc. (please do!) | 27 - | `LUMINA_SYNC_IID` | `localhost` | A name Lumina uses when communicating with other instances, must be equal to where it's http is facing the public internet | 28 - | `LUMINA_SYNC_INTERVAL` | `30` | Specifies the interval between syncs. Minimum is 30. | 15 + | NAME | DEFAULT | FOR | 16 + | -------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | 17 + | `DATABASE_URL` | Development: `postgres://lumina:lumina_pw@localhost:5432/lumina_config`, production: - | The Postgres database url to connect to. Overrides all `LUMINA_POSTGRES_*` values. | 18 + | `LUMINA_POSTGRES_PORT` | `5432` | The port to contact the database on. | 19 + | `LUMINA_POSTGRES_HOST` | `localhost` | The address to contact the database on. | 20 + | `LUMINA_POSTGRES_USERNAME` | `lumina` | The username to log in to the database with. | 21 + | `LUMINA_POSTGRES_PASSWORD` | - | The password to log in to the database with. If not set, Lumina will try without. | 22 + | `LUMINA_POSTGRES_DATABASE` | `lumina_config` | The database to use. | 23 + | `LUMINA_REDIS_URL` | `redis://127.0.0.1/` | Redis URL to connect to. | 24 + | `LUMINA_DB_SALT` | `sal` | The salting to use for some data on the database. | 25 + | `LUMINA_SERVER_PORT` | `8085` | Port for Lumina to accept HTTP requests on. | 26 + | `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`) | 27 + | `LUMINA_SERVER_HTTPS` | `false` | Whether to use 'https' rather than 'http' in links, etc. (please do!) | 28 + | `LUMINA_SYNC_IID` | `localhost` | A name Lumina uses when communicating with other instances, must be equal to where it's http is facing the public internet | 29 + | `LUMINA_SYNC_INTERVAL` | `30` | Specifies the interval between syncs. Minimum is 30. | 29 30 30 31 ## Development 31 32 32 - During development, I use the following: 33 + ### With Nix (preffered) 34 + 35 + Use `flake.nix`, either using `direnv` (there's an `.envrc` file to do this!) or with `nix develop`. 36 + This gets you all the dependencies, including Just. 37 + 38 + ```sh 39 + just dev # Prepares your enviroment and builds/runs the server with file watching. 40 + ``` 41 + 42 + ### Without Nix 43 + 44 + Make sure you have [mise-en-place](https://mise.jdx.dev/) and [Just](https://just.systems/) preinstalled. 33 45 34 46 ```sh 35 47 mise install # Installs mise deps 36 - mise run local-devel-prep # Because you'll need a database running somewhere. 37 - mise run local-devel-watch # Also doable without -watch, if you'd prefer. 48 + just dev # Prepares your enviroment and builds/runs the server with file watching. 38 49 ``` 39 50 40 - When running Lumina server in devel mode, it automatically creates two accounts for you and one of those has an attached 51 + When running Lumina server in development mode, it automatically creates two accounts for you and one of those has an attached 41 52 post on the global timeline. 42 53 43 54 | Username | Email | Password |
+6 -5
mise.toml
··· 3 3 gleam = "1.14.0" 4 4 just = "latest" 5 5 "rust" = { version = "latest", components = "rust-analyzer" } 6 + watchexec = "latest" 6 7 7 8 8 9 [settings] ··· 13 14 14 15 [task_config] 15 16 includes = [ 16 - "./mise/tasks/podman.toml", 17 - "./mise/tasks/format.toml", 18 - "./mise/tasks/check.toml", 19 - "./mise/tasks/run.toml", 20 - "./mise/tasks/moved-to-just.toml", 17 + "./mise/tasks/podman.toml", 18 + "./mise/tasks/format.toml", 19 + "./mise/tasks/check.toml", 20 + "./mise/tasks/run.toml", 21 + "./mise/tasks/moved-to-just.toml", 21 22 ] 22 23 dir = "{{ config_root }}"