@@ 22,7 22,9 @@ type Config struct {
EmailSvc string
StorageSvc string
- MediaURL string
+
+ StaticURL string
+ MediaURL string
AdminEmail string
EmailAdminErrors bool
@@ 56,7 58,8 @@ func LoadConfig(fname string) (*Config, error) {
Timeout: 30,
EmailSvc: "console",
StorageSvc: "fs",
- MediaURL: "/static/",
+ StaticURL: "/static",
+ MediaURL: "/media",
AdminEmail: "admin@localhost",
EmailAdminErrors: true,
DefaultFromEmail: "gobwebs@localhost",
@@ 111,6 114,9 @@ func LoadConfig(fname string) (*Config, error) {
}
}
+ if val, ok := file.Get("gobwebs", "static-url"); ok {
+ conf.StaticURL = val
+ }
if val, ok := file.Get("gobwebs", "media-url"); ok {
conf.MediaURL = val
}