Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
host
Smilodon
Commits
6c82dfcf
Commit
6c82dfcf
authored
Nov 26, 2016
by
Eugen Rochko
Browse files
Fix CDN_HOST variable requirement
parent
950312ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
.env.production.sample
View file @
6c82dfcf
...
...
@@ -12,8 +12,7 @@ LOCAL_DOMAIN=example.com
LOCAL_HTTPS=true
# Application secrets
# These are arbitrary strings. They should be long and cryptographically secure.
# For Docker, `docker-compose run --rm web rake secret` will generate them.
# Generate each with the `rake secret` task
PAPERCLIP_SECRET=
SECRET_KEY_BASE=
...
...
@@ -23,3 +22,6 @@ SMTP_PORT=587
SMTP_LOGIN=
SMTP_PASSWORD=
SMTP_FROM_ADDRESS=notifications@example.com
# Optional asset host for multi-server setups
# CDN_HOST=assets.example.com
config/environments/production.rb
View file @
6c82dfcf
...
...
@@ -13,7 +13,7 @@ Rails.application.configure do
# Full error reports are disabled and caching is turned on.
config
.
consider_all_requests_local
=
false
config
.
action_controller
.
perform_caching
=
true
config
.
action_controller
.
asset_host
=
ENV
[
'CDN_HOST'
]
config
.
action_controller
.
asset_host
=
ENV
[
'CDN_HOST'
]
if
ENV
.
key?
(
'CDN_HOST'
)
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment