jnicklas/carrierwave — Issue #547: fog w/ aws: authenticated_url and fog_host
Author: islandr
Created: 2011-12-02 05:39:09+00:00
State: open

It seems `fog_host` is completely ignored for private files. Along similar lines, `fog_directory` is ignored for public files when `fog_host` is given. I don't remember seeing this behavior documented anywhere. Is it intentional?

```
config.fog_directory = "mybucket"
config.fog_host = "https://myhost.com"
config.fog_public = true

# notice bucket not used
upload.url # => https://myhost.com/path
```

versus

```
config.fog_directory = "mybucket"
config.fog_host = "https://myhost.com"
config.fog_public = false

# notice host not used
upload.url # => https://s3.amazonaws.com/mybucket/path
```