Last active
March 18, 2024 01:37
-
-
Save MatayoshiMariano/53ada82a86c4d03147cfb3c94c02dc21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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