a831012c48
CI / docker (push) Failing after 1m35s
Introduce Gitea Actions workflow and CI-aligned Dockerfile; remove file-based config in favor of SQLite settings; refresh branding and tighten gitignore. 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"
|
|
}
|