0.14.1 go

This commit is contained in:
2025-03-02 22:37:56 +03:00
commit 7dcf291217
13 changed files with 2652 additions and 0 deletions

19
helpers/init_login_db.r Normal file
View File

@@ -0,0 +1,19 @@
# script to setup authentification database (using shinymanager)
# SETUP AUTH =============================
# Init DB using credentials data
credentials <- data.frame(
user = c("admin", "user"),
password = c("admin", "user"),
# password will automatically be hashed
admin = c(TRUE, FALSE),
stringsAsFactors = FALSE
)
# Init the database
shinymanager::create_db(
credentials_data = credentials,
sqlite_path = "auth.sqlite", # will be created
passphrase = Sys.getenv("AUTH_DB_KEY")
# passphrase = "passphrase_wihtout_keyring"
)