Method: Refile.cdn_host
- Defined in:
- lib/refile.rb
.cdn_host ⇒ String?
The host name of a CDN distribution that the Rack application can be reached at. If not set, Refile will use an absolute URL without hostname. It is strongly recommended to run Refile behind a CDN and to set this to the hostname of the CDN distribution.
The ‘cdn_host` setting is used when retrieving files, but not when uploading new files, since uploads should normally not go through the CDN.
A protocol relative URL is recommended for this value.
49 50 51 |
# File 'lib/refile.rb', line 49 def cdn_host @cdn_host end |