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 (
16
16
_ "gopkg.in/mattes/migrate.v1/driver/postgres" //for migrations
17
17
"gopkg.in/mattes/migrate.v1/migrate"
18
18
19
+ dat "github.com/helloeave/dat/dat"
20
+ "github.com/helloeave/dat/kvs"
21
+ runner "github.com/helloeave/dat/sqlx-runner"
19
22
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"
23
23
redis "gopkg.in/redis.v5"
24
24
)
25
25
@@ -228,6 +228,7 @@ type Settings struct {
228
228
DSN string
229
229
CanonicalURL string
230
230
WebsiteBaseURL string
231
+ ImageBaseURL string
231
232
Sitename string
232
233
EncKey string
233
234
ServerPort string
@@ -281,6 +282,8 @@ func loadSettings() *Settings {
281
282
s .MaxImageWidth = newWidth
282
283
}
283
284
}
285
+
286
+ s .ImageBaseURL = os .Getenv ("IMAGE_BASE_URL" )
284
287
s .AttachmentsFolder = os .Getenv ("ATTACHMENTS_FOLDER" )
285
288
s .CanonicalURL = strings .ToLower (os .Getenv ("CANONICAL_URL" ))
286
289
s .CheckCSRFViaReferrer = s .Sitename != "displayworks" // almost always true for backwards compatibility
You can’t perform that action at this time.
0 commit comments