Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@
config.cache_store = :redis_cache_store, cache_store_config
end

config.license_url = if ENV["LAGO_CLOUD"] == "true" && ENV["RAILS_ENV"] == "staging"
"http://license-web.default.svc.cluster.local"
else
"https://license.getlago.com"
# Allow self-hosted deployments to override the license verification endpoint.
config.license_url = ENV.fetch("LAGO_LICENSE_URL") do
if ENV["LAGO_CLOUD"] == "true" && ENV["RAILS_ENV"] == "staging"
"http://license-web.default.svc.cluster.local"
else
"https://license.getlago.com"
end
end

if ENV["LAGO_SMTP_ADDRESS"].present? && !ENV["LAGO_SMTP_ADDRESS"].empty?
Expand Down
Loading