Nginx Trame Examples

Hello, I am trying to setup a Trame app to be served on a AWS instance with SSL. My thinking is that serving Trame with Nginx would be the best way. However, I’m a bit stuck in implementing this. The two approaches I have been taking are:

  1. Use the Static Web Client generator to generate static files that can then be served by Nginx. However, the documentation is a bit lacking here so I’m not sure how to connect Nginx to the Trame app after generating the index.html

  2. Use Gunicorn to interface Nginx and Trame in the same way Gunicorn does with Nginx and Flask. I tried starting up the Trame app for hosting on 0.0.0.0 and port 5000 with Nginx pointing to that port, but I get an HTTPBadRequest error in wslink, so this approach doesn’t seem promising.

My application is pretty simple and I really just want the easiest solution right now. I don’t care about multiple users either. Are there any small examples of serving Trame with Nginx?

Never mind, I was able to get it working with CapRover.

Caprover is indeed the easiest solution especially with automatic SSL certificate.