Skip to content

Commit 41631d5

Browse files
Fix: Allow localhost for Coolify health checks
1 parent 72a3e6f commit 41631d5

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

config/environments/production.rb

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99

1010
config.consider_all_requests_local = false
1111

12-
# Allow Render hostname
13-
14-
config.hosts << "prostaff.gg"
15-
16-
config.hosts << "www.prostaff.gg"
17-
18-
# Railway domain
19-
config.hosts << "prostaff-api-production.up.railway.app"
12+
# Allow Render hostname
13+
config.hosts << "prostaff.gg"
14+
config.hosts << "www.prostaff.gg"
15+
config.hosts << ".prostaff.gg"
16+
17+
# Railway domain
18+
config.hosts << "prostaff-api-production.up.railway.app"
19+
20+
# Allow localhost for health checks (Coolify/Docker)
21+
config.hosts << "localhost"
22+
config.hosts << "127.0.0.1"
23+
config.hosts << "187.77.39.215"
2024

2125
# config.hosts << "123.123.123.123"
2226

0 commit comments

Comments
 (0)