mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
env-helper update
This commit is contained in:
parent
faa2d3b787
commit
510e22d82d
1 changed files with 3 additions and 2 deletions
|
|
@ -35,10 +35,11 @@ func createEnvFile(filename string) {
|
||||||
// You can add some default values to the .env file here if needed
|
// You can add some default values to the .env file here if needed
|
||||||
// For example:
|
// For example:
|
||||||
port, err := findOpenPort()
|
port, err := findOpenPort()
|
||||||
salt := GenerateRandomString(28)
|
saltKey := GenerateKey()
|
||||||
|
salt := saltKey[:28]
|
||||||
iv := GenerateRandomIntegerString(16)
|
iv := GenerateRandomIntegerString(16)
|
||||||
|
|
||||||
log.Println(err, salt, iv)
|
log.Println(err, saltKey, iv)
|
||||||
|
|
||||||
_, err = file.WriteString("VITE_MCRM__PORT=" + string(port) + "\nVITE_MCRM__SALT=" + salt + "\nVITE_MCRM__IV=" + iv)
|
_, err = file.WriteString("VITE_MCRM__PORT=" + string(port) + "\nVITE_MCRM__SALT=" + salt + "\nVITE_MCRM__IV=" + iv)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue