From d8d1609572aef6a649017e49554e35bf2148be3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 4 Mar 2023 11:14:11 +0800 Subject: [PATCH] Serve static assets from Rails in prod --- site-cookbooks/kosmos-akkounts/recipes/default.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site-cookbooks/kosmos-akkounts/recipes/default.rb b/site-cookbooks/kosmos-akkounts/recipes/default.rb index 8b4da48..2daf6bf 100644 --- a/site-cookbooks/kosmos-akkounts/recipes/default.rb +++ b/site-cookbooks/kosmos-akkounts/recipes/default.rb @@ -38,6 +38,8 @@ lndhub_host = search(:node, "role:lndhub").first["knife_zero"]["host"] rescue ni webhooks_allowed_ips = [lndhub_host].compact.uniq.join(',') env = {} +env[:rails_serve_static_files] = "true" + if webhooks_allowed_ips.length > 0 env[:webhooks_allowed_ips] = webhooks_allowed_ips end