HTTPS certifcates in Docker image #430
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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, |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am looking at depolying the docker image to use for students.
I would prefer to use the Docker image for easy of admin use, but failing to get the URL working with HTTPS.
Is there a way of using the docker image with HTTPS certifcates?
I have tried to altering the wait-for-backend.sh as a quick and dirty fix but that did not work.
i.e.
exec
gunicorn --worker-tmp-dir $worker_tmp_dir --workers $workers --threads $threads --worker-class $worker_class --access-logfile /usr/src/app/logs/access_gunicorn.log --log-level $log_level --bind 0.0.0.0:5000 --certfile /usr/src/app/data/server.crt --keyfile /usr/src/app/data/server.key --ssl-version 3 webtool:app
Any ideas? Thanks
Andrew
Beta Was this translation helpful? Give feedback.
All reactions