76ba500417
CI / docker (push) Successful in 2m4s
OpenAI-compatible AI gateway with Vue admin UI, multi-provider egress, ingress key governance, monitoring, and security controls. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
533 B
Go
23 lines
533 B
Go
package settings
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
|
|
"github.com/rose_cat707/luminary/internal/model"
|
|
)
|
|
|
|
const legacyDefaultEncryptionKey = "change-me-in-production-32bytes!!"
|
|
|
|
func mergeLegacySettings(s model.SystemSettings) model.SystemSettings {
|
|
if key := strings.TrimSpace(os.Getenv("LUMINARY_ENCRYPTION_KEY")); key != "" {
|
|
s.EncryptionKey = key
|
|
}
|
|
return s
|
|
}
|
|
|
|
// LegacyAdminCredentials returns default bootstrap credentials for first admin.
|
|
func LegacyAdminCredentials() (username, password string) {
|
|
return "admin", "admin123"
|
|
}
|