handmade dummy S3 local dev server #4

Merged
bvisness merged 1 commits from nick12/hmn:hmns3 into localdev-2022 2022-05-14 00:12:45 +00:00
Contributor
  • Run the server via go run src/main.go hmns3

  • configure it by setting

     AssetsSpacesKey:      "dummy key",
     AssetsSpacesSecret:   "dummy secret",
     AssetsSpacesRegion:   "dummy-region",
     AssetsSpacesEndpoint: "http://localhost/",
     AssetsSpacesBucket:   "bucky",
     AssetsPublicUrlRoot:  "http://localhost/bucky/"
    

Where "bucky" is a bucket name of your choosing. This should create a /hmn/tmp folder, with a subfolder for the bucket. Can also be run as go run src/main.go hmns3 ./tmp2 to pick a different folder.

TODO: Less hacky slash handling in key names, and mime type storage.

- Run the server via `go run src/main.go hmns3` - configure it by setting AssetsSpacesKey: "dummy key", AssetsSpacesSecret: "dummy secret", AssetsSpacesRegion: "dummy-region", AssetsSpacesEndpoint: "http://localhost/", AssetsSpacesBucket: "bucky", AssetsPublicUrlRoot: "http://localhost/bucky/" Where "bucky" is a bucket name of your choosing. This should create a /hmn/tmp folder, with a subfolder for the bucket. Can also be run as `go run src/main.go hmns3 ./tmp2` to pick a different folder. TODO: Less hacky slash handling in key names, and mime type storage.
nick12 added 1 commit 2022-05-01 05:38:07 +00:00
nick12 force-pushed hmns3 from 1b4ed3ddd8 to 69a44d1734 2022-05-01 05:42:07 +00:00 Compare
bvisness changed target branch from master to localdev-2022 2022-05-14 00:11:38 +00:00
bvisness merged commit 4187a3b6ca into localdev-2022 2022-05-14 00:12:45 +00:00
Sign in to join this conversation.
No description provided.