1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Implement S3 storage driver

This commit is contained in:
Lukas SP
2020-08-23 23:44:47 +02:00
parent 8317fef5f7
commit 5149434cff
9 changed files with 175 additions and 24 deletions

View File

@@ -60,7 +60,7 @@ func Serve() error {
}
// Route the hastebin documents route if hastebin support is enabled
if env.Get("HASTEBIN_SUPPORT", "false") == "true" {
if env.Bool("HASTEBIN_SUPPORT", false) {
router.POST("/documents", rateLimiterMiddleware.Handle(v1.HastebinSupportHandler))
}