-
Notifications
You must be signed in to change notification settings - Fork 443
feat(worker): add static-key to keep the same public url for serve static files (close #3657) #3670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…atic files (close #3657) Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing doc about this coooool feature :)
sdk/static_files.go
Outdated
container := base64.RawURLEncoding.EncodeToString([]byte(fmt.Sprintf("%d-%s", staticfile.NodeJobRunID, url.PathEscape(staticfile.Name)))) | ||
var container string | ||
if staticfile.StaticKey != "" { | ||
container = base64.RawURLEncoding.EncodeToString([]byte(fmt.Sprintf("%d-%d-%s", staticfile.WorkflowID, staticfile.StaticKey, url.PathEscape(staticfile.Name)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sprintf format %d has arg staticfile.StaticKey of wrong type string (from govet
)
…atic files (close #3657) Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
…atic files (close #3657) Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the URL look like ?
Signed-off-by: Benjamin Coenen benjamin.coenen@corp.ovh.com
close Serve Static Files with a fix url #3657
@ovh/cds