Your app doesn't need to start both. It should generally just listen on
port 8080 (but technically should be the port listed in the env variable
$PORT) for HTTP requests. HTTPS/TLS is handled at the platform layer.
Usually, there would be a load balancer in front of your CF installation
which accepts HTTPS/TLS requests and terminates them. It would then proxy
requests to the GoRouter & ultimately your application via HTTP.
There are some variations on this as you can have your LB send requests via
HTTPS to the GoRouter which is capable of terminating HTTPS/TLS too (if
it's configured as such). In this way, you can make sure encryption is in
use for one additional hop of the request. For small environments that
don't have LB's, it's also possible to have GoRouter handle incoming
requests directly and terminate HTTPS/TLS. This only works for small envs
though, because it limits you to having one GoRouter. I don't know how
this is handled in PCFDev, but I suspect it might be done this way.
If you require HTTPS/TLS all the way to your application, the current
solution is to use TCP routing instead of a web application. TCP routing
has a different request path which results in your application receiving
the TCP connection from the client. This allows you to configure HTTPS/TLS
at the application level and have traffic encrypted all the way to the app.
Hope that helps!
On Tue, Sep 12, 2017 at 8:55 AM, Ushani Balasooriya <ushanib(a)gmail.com>
My app should start in https:9443 ports. How can I achieve this?
This should be my login url : https://localhost:9443/carbon/
If I use Diego container, should it always be port 8080? Please point me
to a proper document where I can deploy my image in PCF to start on https
This is my log:
2017-09-12T18:14:55.382+05:30 [API/0] [OUT] Created app with guid
2017-09-12T18:14:57.446+05:30 [API/0] [OUT] Updated app with guid
:verb=>"add", :relation=>"routes", :related_guid=>"7d708d12-35fa-
2017-09-12T18:15:01.708+05:30 [API/0] [OUT] Updated app with guid
2017-09-12T18:15:01.723+05:30 [STG/0] [OUT] Creating container
2017-09-12T18:15:01.928+05:30 [STG/0] [OUT] Staging...
2017-09-12T18:15:01.928+05:30 [STG/0] [OUT] Successfully created container
2017-09-12T18:15:01.986+05:30 [STG/0] [OUT] Staging process started ...
2017-09-12T18:15:06.062+05:30 [STG/0] [OUT] Staging process finished
2017-09-12T18:15:06.066+05:30 [STG/0] [OUT] Exit status 0
2017-09-12T18:15:06.066+05:30 [STG/0] [OUT] Staging Complete
2017-09-12T18:15:06.095+05:30 [STG/0] [OUT] Destroying container
2017-09-12T18:15:06.260+05:30 [CELL/0] [OUT] Creating container
2017-09-12T18:15:06.378+05:30 [STG/0] [OUT] Successfully destroyed
2017-09-12T18:15:20.061+05:30 [API/0] [OUT] Updated app with guid
2017-09-12T18:15:20.157+05:30 [API/0] [OUT] Updated app with guid
2017-09-12T18:15:20.382+05:30 [API/0] [OUT] Updated app with guid
2017-09-12T18:15:20.391+05:30 [CELL/0] [OUT] Creating container