HTTPS certifcates in Docker image #430
|
Hi, I have tried to altering the wait-for-backend.sh as a quick and dirty fix but that did not work. Any ideas? Thanks |
Replies: 3 comments 1 reply
|
The best way would be to run Nginx or Apache and have it serve 4CAT. You can run it on your host server and point it to the exposed frontend container port. It also would be possible to run either in a separate container and connect that container to 4CAT (but I have not personally done that). Gunicorn itself recommends Nginx. |
|
Once you set this up, note that you can further configure 4CAT to take various proxy headers into account via Control Panel -> Settings -> Flask settings -> Use proxy headers for URL. |
|
Thanks, Got there in the end.
The above is important since if you leave the TELEGRAM_PORT as the default it will fail with: I was thought the Docker way would be the best way of doing it, but having second thoughts now. Thanks, |
Thanks,
Got there in the end.