Support ALLOWED_HOSTS #1

Open
opened 2026-02-27 08:45:04 +00:00 by decentral1se · 0 comments
Owner

I was unable to get this to work with 👇

compose.yml Line 10 in 9760724ec4
- ALLOWED_HOSTS="localhost ${DOMAIN} www.${DOMAIN}"

So, I temporarily had to patch the image itself 🙈

diff --git a/config/application.rb b/config/application.rb
index 54fd59c9..50dba58b 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -31,6 +31,6 @@ module Timeoverflow

     # Guard against DNS rebinding attacks by permitting hosts
     # localhost is necessary for the docker image
-    config.hosts = ENV.fetch('ALLOWED_HOSTS', 'localhost').split(' ')
+    config.hosts = nil
   end
 end
I was unable to get this to work with 👇 https://git.coopcloud.tech/coop-cloud/timeoverflow/src/commit/9760724ec43a8da04196f4b99add230bb0b7aecf/compose.yml#L10 So, I temporarily had to patch the image itself 🙈 ```diff diff --git a/config/application.rb b/config/application.rb index 54fd59c9..50dba58b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -31,6 +31,6 @@ module Timeoverflow # Guard against DNS rebinding attacks by permitting hosts # localhost is necessary for the docker image - config.hosts = ENV.fetch('ALLOWED_HOSTS', 'localhost').split(' ') + config.hosts = nil end end ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/timeoverflow#1
No description provided.