Minor cleanup

This commit is contained in:
Locria Cyber 2023-10-03 10:22:01 +00:00
parent 88e77028b3
commit bb3ac43529
Signed by: iacore
GPG key ID: F8C16E5157A63006
3 changed files with 6 additions and 3 deletions

3
core/database.go Normal file
View file

@ -0,0 +1,3 @@
package core
// todo

View file

@ -23,7 +23,6 @@ func main() {
}
config := root_config.Matrix
// todo: check Matrix configuration and stuff
if config.AccessToken == "" {
panic("no access token")
}

View file

@ -10,12 +10,13 @@ Tech stack
- .socket_path (UNIX socket, string)
- .service (array of services)
- .matrix (Matrix-related settings, see below)
- [-] Auto deploy script (the current one is flaky. probably can be a cron job)
- [x] Auto deploy script (run as dinit service)
Check online methods
- [x] TCP Connect
- [x] HTTP 2xx
- [x] ICMP
Services
@ -36,6 +37,6 @@ Services
When config file is down, those variables will be made non-optional and load from config instead of envvar.
- `MAUTRIX_USER_ID`: Matrix user ID, optional, e.g. `@exozymebot76397:matrix.org`
- `MAUTRIX_USER_ID`: Matrix user ID, optional, e.g. `@exozymebot76397:matrix.org`g
- `MAUTRIX_ACCESS_TOKEN`: Matrix access token
- `MAUTRIX_ROOM_ID`: Matrix room ID, optional, e.g. `#room-name:matrix.org`