5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 05:54:17 +00:00

fix: rehabilitar protección contra dns rebinding

lo habíamos deshabilitado en 2022 sin una explicación real y nos impide
verificar la procedencia de los archivos.
This commit is contained in:
f 2023-02-01 17:51:58 -03:00
parent d095dbcc14
commit 727435569c

View file

@ -1,11 +1,10 @@
# frozen_string_literal: true
Rails.application.configure do
next unless ENV['RAILS_ENV'] == 'development'
next Rails.env.test?
domain = ENV.fetch('SUTTY', 'sutty.nl')
config.hosts << domain
config.hosts << "panel.#{domain}"
config.hosts << "api.#{domain}"
end