Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
abunchtell
/
mastodon
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Actividad
Explorar el Código
Change to switch signature version for Amazon S3 (
#2124
)
master
Yamagishi Kazutoshi
hace 7 años
committed by
Eugen
padre
8bac0350d1
commit
8b8e140c71
Se han
modificado 2 ficheros
con
2 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-0
.env.production.sample
+1
-0
config/initializers/paperclip.rb
+ 1
- 0
.env.production.sample
Ver fichero
@@ -74,6 +74,7 @@ SMTP_FROM_ADDRESS=notifications@example.com
# S3_PROTOCOL=https
# S3_HOSTNAME=
# S3_ENDPOINT=
# S3_SIGNATURE_VERSION=
# Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
# S3_CLOUDFRONT_HOST=
+ 1
- 0
config/initializers/paperclip.rb
Ver fichero
@@ -28,6 +28,7 @@ if ENV['S3_ENABLED'] == 'true'
unless ENV['S3_ENDPOINT'].blank?
Paperclip::Attachment.default_options[:s3_options] = {
endpoint: ENV['S3_ENDPOINT'],
signature_version: ENV['S3_SIGNATURE_VERSION'] || 'v4',
force_path_style: true,
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar