mirror of
https://github.com/mirego/accent.git
synced 2024-07-14 22:30:32 +03:00
Fix ACL for AWS S3 integration
This commit is contained in:
parent
58b78e29b4
commit
132d0f27f4
@ -35,7 +35,12 @@ defmodule Accent.IntegrationManager.Execute.AWSS3 do
|
||||
:calendar.universal_time(),
|
||||
"put",
|
||||
url,
|
||||
[{"host", uri.authority}],
|
||||
[
|
||||
{"host", uri.authority},
|
||||
{"x-amz-acl", "public-read"},
|
||||
{"x-amz-tagging",
|
||||
"ACCENT_VERSION=#{Application.get_env(:accent, :version)}&USER_ID=#{user.id}&PROJECT_ID=#{integration.project_id}"}
|
||||
],
|
||||
upload.render,
|
||||
uri_encode_path: false
|
||||
)
|
||||
|
@ -30,10 +30,12 @@ defmodule Accent.GraphQL.Schema do
|
||||
import_types(Accent.GraphQL.Types.MutationResult)
|
||||
import_types(Accent.GraphQL.Types.Lint)
|
||||
|
||||
@version Application.compile_env!(:accent, :version)
|
||||
|
||||
object :application do
|
||||
field(:version, :string,
|
||||
resolve: fn _, _ ->
|
||||
{:ok, "1.2.3"}
|
||||
{:ok, @version}
|
||||
end
|
||||
)
|
||||
end
|
||||
|
@ -1167,6 +1167,8 @@
|
||||
"integration_update_success": "L’intégration a été mise à jour avec succès",
|
||||
"integration_remove_error": "L’intégration n’a pas pu être supprimée",
|
||||
"integration_remove_success": "L’intégration a été supprimée avec succès",
|
||||
"integration_execute_error": "L’intégration n’a pas pu être exécutée",
|
||||
"integration_execute_success": "L’intégration a été exécutée avec succès",
|
||||
"machine_translations_config_error": "La configuration n’a pas pu être mise à jour",
|
||||
"machine_translations_config_success": "La configuration a été mise à jour avec succès",
|
||||
"update_error": "Le projet n’a pas pu être mis à jour",
|
||||
|
Loading…
Reference in New Issue
Block a user