Minor cleanup
This commit is contained in:
parent
88e77028b3
commit
bb3ac43529
3 changed files with 6 additions and 3 deletions
3
core/database.go
Normal file
3
core/database.go
Normal file
|
@ -0,0 +1,3 @@
|
|||
package core
|
||||
|
||||
// todo
|
|
@ -23,7 +23,6 @@ func main() {
|
|||
}
|
||||
config := root_config.Matrix
|
||||
|
||||
// todo: check Matrix configuration and stuff
|
||||
if config.AccessToken == "" {
|
||||
panic("no access token")
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue