File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ RUN bundle install --jobs=$(nproc)
2020
2121COPY . .
2222
23- EXPOSE 8080
23+ EXPOSE 8080 8081
2424
2525ENV THRUSTER_TARGET_PORT=8080
2626ENV THRUSTER_LOG_REQUESTS=false
Original file line number Diff line number Diff line change 11thread_count = ENV . fetch ( 'RAILS_MAX_THREADS' , 4 ) . to_i
22threads thread_count , thread_count
33
4- port 8080
4+ tls_cert_path = ENV . fetch ( 'TLS_CERT' , '/certs/server.crt' )
5+ tls_key_path = ENV . fetch ( 'TLS_KEY' , '/certs/server.key' )
6+ bind "tcp://0.0.0.0:8080"
7+ bind "ssl://0.0.0.0:8081?cert=#{ tls_cert_path } &key=#{ tls_key_path } "
58
69# Allow all HTTP methods so Rack middleware can return 405 instead of Puma returning 501
710supported_http_methods :any
Original file line number Diff line number Diff line change 1212 " limited-conn" ,
1313 " json" ,
1414 " json-comp" ,
15+ " json-tls" ,
1516 " upload" ,
1617 " api-4" ,
1718 " api-16" ,
1819 " async-db" ,
1920 " static"
2021 ],
2122 "maintainers" : []
22- }
23+ }
You can’t perform that action at this time.
0 commit comments