Compare commits

...

2 commits

Author SHA1 Message Date
a7621a1993 Fix panic on -help flag with uninitialized JWT secret key
All checks were successful
continuous-integration/drone/push Build is passing
Fixes: https://github.com/happyDomain/happydomain/issues/40
2025-12-30 18:24:48 +07:00
Km
224d2006ef Remove Mysql support and and information about storage
Updated README to reflect changes in storage engine options and removed support for DBMS.
2025-12-30 18:23:59 +07:00
2 changed files with 12 additions and 1 deletions

View file

@ -85,7 +85,7 @@ The help command `./happyDomain -help` shows you the available engines:
```
-storage-engine value
Select the storage engine between [leveldb mysql] (default leveldb)
Select the storage engine between [inmemory leveldb] (default leveldb)
```
#### LevelDB
@ -100,6 +100,13 @@ LevelDB is a small embedded key-value store (as SQLite it doesn't require an add
By default, a new directory is created near the binary, called `happydomain.db`. This directory contains the database used by the program.
You can change it to a more meaningful/persistant path.
#### inmemory
Data are stored in memory and lost when service is stopped.
#### DBMS
DBMS as Mysql/Mariadb or Postgres are no more supported or planned.
### Persistent configuration

View file

@ -32,6 +32,10 @@ type JWTSecretKey struct {
}
func (i *JWTSecretKey) String() string {
if i.Secret == nil {
return ""
}
return base64.StdEncoding.EncodeToString(*i.Secret)
}