mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 23:44:22 +00:00
Update README config section
This commit is contained in:
@@ -16,7 +16,6 @@ type Config struct {
|
||||
WorkDir string
|
||||
StaticPath string
|
||||
Port string
|
||||
RootURL string
|
||||
Domain string
|
||||
CORSOrigins []string
|
||||
AdminEmail string
|
||||
@@ -90,10 +89,6 @@ func LoadConfig() (*Config, error) {
|
||||
config.Port = port
|
||||
}
|
||||
|
||||
if rootURL := os.Getenv("LEMMA_ROOT_URL"); rootURL != "" {
|
||||
config.RootURL = rootURL
|
||||
}
|
||||
|
||||
if domain := os.Getenv("LEMMA_DOMAIN"); domain != "" {
|
||||
config.Domain = domain
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@ func TestLoad(t *testing.T) {
|
||||
"LEMMA_WORKDIR",
|
||||
"LEMMA_STATIC_PATH",
|
||||
"LEMMA_PORT",
|
||||
"LEMMA_ROOT_URL",
|
||||
"LEMMA_DOMAIN",
|
||||
"LEMMA_CORS_ORIGINS",
|
||||
"LEMMA_ADMIN_EMAIL",
|
||||
@@ -127,7 +126,6 @@ func TestLoad(t *testing.T) {
|
||||
{"WorkDir", cfg.WorkDir, "/custom/work/dir"},
|
||||
{"StaticPath", cfg.StaticPath, "/custom/static/path"},
|
||||
{"Port", cfg.Port, "3000"},
|
||||
{"AppURL", cfg.RootURL, "http://localhost:3000"},
|
||||
{"AdminEmail", cfg.AdminEmail, "admin@example.com"},
|
||||
{"AdminPassword", cfg.AdminPassword, "password123"},
|
||||
{"JWTSigningKey", cfg.JWTSigningKey, "secret-key"},
|
||||
|
||||
Reference in New Issue
Block a user