File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import (
1616 _ "gopkg.in/mattes/migrate.v1/driver/postgres" //for migrations
1717 "gopkg.in/mattes/migrate.v1/migrate"
1818
19+ dat "github.com/helloeave/dat/dat"
20+ "github.com/helloeave/dat/kvs"
21+ runner "github.com/helloeave/dat/sqlx-runner"
1922 dotenv "github.com/joho/godotenv"
20- dat "github.com/nerdynz/dat/dat"
21- "github.com/nerdynz/dat/kvs"
22- runner "github.com/nerdynz/dat/sqlx-runner"
2323 redis "gopkg.in/redis.v5"
2424)
2525
@@ -228,6 +228,7 @@ type Settings struct {
228228 DSN string
229229 CanonicalURL string
230230 WebsiteBaseURL string
231+ ImageBaseURL string
231232 Sitename string
232233 EncKey string
233234 ServerPort string
@@ -281,6 +282,8 @@ func loadSettings() *Settings {
281282 s .MaxImageWidth = newWidth
282283 }
283284 }
285+
286+ s .ImageBaseURL = os .Getenv ("IMAGE_BASE_URL" )
284287 s .AttachmentsFolder = os .Getenv ("ATTACHMENTS_FOLDER" )
285288 s .CanonicalURL = strings .ToLower (os .Getenv ("CANONICAL_URL" ))
286289 s .CheckCSRFViaReferrer = s .Sitename != "displayworks" // almost always true for backwards compatibility
You can’t perform that action at this time.
0 commit comments