How to make trame docker serve https/wss directly? #334
-
Hello everyone! I am currently working on enabling the HTTPS service in my application, but I'm encountering some issues. My application is essentially running based on the trame cookie cutter example and it is hosted remotely. I've created two certificate files and placed them inside my trame environment using a Dockerfile, with the file paths '/etc/ssl/certs/trame.crt' and '/etc/ssl/private/trame.key'. Following Sebastien's suggestion in another thread, I have made the necessary configurations in the apps.yml file:
Then I updated the Apache configuration file '/etc/apache2/sites-available/default-ssl.conf' within docker to contain the path to the files (though I am not sure if this is the file I should have modified):
Finally, I built the image and ran the run_image.sh as:
It is still not working and the docker logs are not helping. Would you happen to have any idea what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So if you go the Apache route, you should not do SSL at the trame layer (apps.yml). Then you need to expose the following config with the SSL part. Also you can see how we were doing that years ago here |
Beta Was this translation helpful? Give feedback.
So if you go the Apache route, you should not do SSL at the trame layer (apps.yml).
Then you need to expose the following config with the SSL part.
Also you can see how we were doing that years ago here