Skip to content

Commit

Permalink
Disable reverse proxy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Aug 14, 2024
1 parent 5c8cc36 commit d400a14
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if answers['foreman_proxy_content'].is_a?(Hash)
answers['foreman_proxy_content'].delete('reverse_proxy')
end
18 changes: 18 additions & 0 deletions spec/migration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,21 @@
end
end
end

migration '240814115647-disable-reverse-proxy-by-default' do
scenarios %w[foreman-proxy-content] do
context 'reset reverse_proxy to default value to disable by default' do
let(:answers) do
{
'foreman_proxy_content' => {
'reverse_proxy' => true,
},
}
end

it 'changes the default to Redis' do
expect(migrated_answers['foreman_proxy_content']['reverse_proxy']).to eq(nil)
end
end
end
end

0 comments on commit d400a14

Please sign in to comment.