Skip to content

Commit

Permalink
fix base-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schmidt committed Jan 29, 2024
1 parent 77ee3c4 commit 6a52bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/devshred/upload/IOService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class IOService {
throw IOException("Could not save file: " + tempFile.getName(), ioe)
}
val mimeType: String = Tika().detect(tempFile)
val href = "http://${baseUrl}/files/$uuid"
val href = "${baseUrl}/files/$uuid"

return StoredFile(uuid, filename, mimeType, href, tempFile.length(), tempFile.absolutePath)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
server.port: 7001

app.base-url: ${BASE_URL:localhost:7001}
app.base-url: ${BASE_URL:http://localhost:7001}

0 comments on commit 6a52bce

Please sign in to comment.