mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-10 17:43:58 +03:00
Added MySQL as a datastore
The specific datastore backend to use can now be set by using command line options or by using environment variables. The default datastore backend is still jsondb but mysql can now also be used as a backend. Environment variables have also been added to control settings relevant to the database. SQL queries are made by directly accessing the database/sql API. TLS is also supported. Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
4a28486f73
commit
bc6f0f491f
6 changed files with 543 additions and 9 deletions
|
@ -22,6 +22,7 @@ var (
|
|||
DBDatabase string
|
||||
DBUsername string
|
||||
DBPassword string
|
||||
DBTLS string
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue