Skip to content

Commit

Permalink
feat: update initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kuznetsovvl committed Sep 24, 2023
1 parent 229acdb commit d0135bf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/install/create_initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@
create_file Rails.root.join("config/initializers/turbo_train.rb") do
%{
Turbo::Train.configure do |config|
config.mercure_domain = 'localhost'
config.publisher_key = 'testing'
config.subscriber_key = 'test'
config.skip_ssl_verification = true # Development only; don't do this in production
config.default_server = # Default value is :mercure
config.server :mercure do |mercure|
mercure.mercure_domain = 'localhost'
mercure.publisher_key = 'testing'
mercure.subscriber_key = 'test'
end
config.server :fanout do |fanout|
fanout.service_url = ''
fanout.service_id = ''
fanout.fastly_key = ''
end
end
}
end

0 comments on commit d0135bf

Please sign in to comment.