10 lines
350 B
Ruby
10 lines
350 B
Ruby
Rails.application.config.to_prepare do
|
|
WarpEngine.configure do |c|
|
|
c.file_container_path = ENV.fetch("FILE_CONTAINER_PATH", "/softwares")
|
|
c.image_container_path = ENV.fetch("IMAGE_CONTAINER_PATH", "/images")
|
|
|
|
# With no secret configured the /build/* endpoints reject every request.
|
|
c.update_secret = ENV["UPDATE_SECRET"]
|
|
end
|
|
end
|