mirror of
https://github.com/Luzifer/share.git
synced 2024-12-29 23:11:18 +00:00
Shorten the default share URLs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
89b752c94f
commit
1596e9c7c1
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -16,7 +16,7 @@ import (
|
|||
var (
|
||||
cfg = struct {
|
||||
BaseURL string `flag:"base-url" env:"BASE_URL" default:"" description:"URL to prepend before filename"`
|
||||
BasePath string `flag:"base-path" env:"BASE_PATH" default:"file/{{ printf \"%.2s\" .Hash }}/{{.Hash}}" description:"Path to upload the file to"`
|
||||
BasePath string `flag:"base-path" env:"BASE_PATH" default:"file/{{ printf \"%.6s\" .Hash }}" description:"Path to upload the file to"`
|
||||
Bootstrap bool `flag:"bootstrap" default:"false" description:"Upload frontend files into bucket"`
|
||||
Bucket string `flag:"bucket" env:"BUCKET" default:"" description:"S3 bucket to upload files to" validate:"nonzero"`
|
||||
ContentType string `flag:"content-type,c" default:"" description:"Force content-type to be set to this value"`
|
||||
|
|
Loading…
Reference in a new issue