For Ruby container types, the way you enable HTTPS depends on the type of application server used.
For Ruby container types that use Puma as the application server, you use a configuration file to enable HTTPS.
The container_commands key restarts the nginx server after everything is configured so that the server uses the new https.conf file.
For Ruby container types that use Passenger as the application server, you use both a configuration file and a JSON file to enable HTTPS.
Create a text file and add the following JSON to the file. Save it in your source bundle's root directory with the name passenger-standalone.json. This JSON file configures Passenger to use HTTPS.
This JSON file must not contain a byte order mark (BOM). If it does, the Passenger JSON library will not read the file correctly and the Passenger service will not start.