5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 20:26:22 +00:00
panel/config/initializers/hosts.rb

12 lines
234 B
Ruby
Raw Permalink Normal View History

2019-09-06 23:40:33 +00:00
# frozen_string_literal: true
Rails.application.configure do
2023-02-03 14:50:09 +00:00
next if Rails.env.test?
2019-09-06 23:40:33 +00:00
domain = ENV.fetch('SUTTY', 'sutty.nl')
2019-09-07 01:00:23 +00:00
config.hosts << "panel.#{domain}"
2019-09-06 23:40:33 +00:00
config.hosts << "api.#{domain}"
config.hosts << /\Aapi\./
2019-09-06 23:40:33 +00:00
end