Skip to content

Instantly share code, notes, and snippets.

@MatayoshiMariano
Last active March 18, 2024 01:37
Show Gist options
  • Save MatayoshiMariano/53ada82a86c4d03147cfb3c94c02dc21 to your computer and use it in GitHub Desktop.
Save MatayoshiMariano/53ada82a86c4d03147cfb3c94c02dc21 to your computer and use it in GitHub Desktop.
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
threads_count = Integer(ENV['THREAD_COUNT'] || 5)
threads threads_count, threads_count
rackup DefaultRackup
port 3001
environment ENV['RACK_ENV'] || 'production'
if ENV['RACK_ENV'] == 'development'
localhost_key = "#{File.join('config', 'local-certs', 'localhost-key.pem')}"
localhost_crt = "#{File.join('config', 'local-certs', 'localhost.pem')}"
# To be able to use rake etc
ssl_bind '0.0.0.0', 3000, {
key: localhost_key,
cert: localhost_crt,
verify_mode: 'none'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment