mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust bind address
This commit is contained in:
1 parent
7b4c74d711
commit
9944a9b1a5
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -105,6 +105,6 @@ if ENV['REDIS_URL'].to_s.empty?
|
|||||||
|
|
||||||
redis_password = Digest::SHA1.hexdigest("redis#{ENV.fetch('SECRET_KEY_BASE', '')}")
|
redis_password = Digest::SHA1.hexdigest("redis#{ENV.fetch('SECRET_KEY_BASE', '')}")
|
||||||
|
|
||||||
ENV['REDIS_URL'] = "redis://default:#{redis_password}@0.0.0.0:6379/0"
|
ENV['REDIS_URL'] = "redis://default:#{redis_password}@127.0.0.1:16379/0"
|
||||||
ENV['LOCAL_REDIS_URL'] = ENV.fetch('REDIS_URL', nil)
|
ENV['LOCAL_REDIS_URL'] = ENV.fetch('REDIS_URL', nil)
|
||||||
end
|
end
|
||||||
@@ -54,6 +54,7 @@ Puma::Plugin.create do
|
|||||||
Dir.chdir(ENV.fetch('WORKDIR', nil)) unless ENV['WORKDIR'].to_s.empty?
|
Dir.chdir(ENV.fetch('WORKDIR', nil)) unless ENV['WORKDIR'].to_s.empty?
|
||||||
|
|
||||||
exec('redis-server', '--requirepass', Digest::SHA1.hexdigest("redis#{ENV.fetch('SECRET_KEY_BASE', '')}"),
|
exec('redis-server', '--requirepass', Digest::SHA1.hexdigest("redis#{ENV.fetch('SECRET_KEY_BASE', '')}"),
|
||||||
|
'--bind', '127.0.0.1', '--port', '16379',
|
||||||
'--loglevel', 'warning')
|
'--loglevel', 'warning')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user