Fix antiproxying (again).

Fuck it, just hardcode it. They rewrite certain parts of our markup so
we can't rely on anything in the html.
This commit is contained in:
evazion
2020-06-02 23:03:04 -05:00
parent bfa76abb56
commit 647556761b
4 changed files with 8 additions and 14 deletions

View File

@@ -30,11 +30,6 @@ module Danbooru
Socket.gethostname
end
# The canonical base domain for the site, e.g. donmai.us.
def domain
hostname
end
# Contact email address of the admin.
def contact_email
"webmaster@#{hostname}"
@@ -472,11 +467,6 @@ module Danbooru
def redis_url
"redis://localhost:6379"
end
# Try to prevent copycat sites from proxying our site and inserting ads or phishing passwords.
def enable_antiproxying?
Rails.env.production?
end
end
class EnvironmentConfiguration