Enable HTTPS for self hosted instance? #111
-
Hello! I'm new to running things in containers and have also never used Caddy or Gunicorn before. I've been attempting to setup everything for self-hosting on a local test machine I have in my home lab but have been unsuccessful in getting HTTPS/SSL setup and working properly. Are there any tips on how I might be able to get this running? I've worked with looking up Caddy documentation and tried changing around a few things and adding in my certificates to the caddyfile for my testing domain without success. Whenever I try to connect on any port other than :8000 I get refused connection. And I temporarily enabled google auth to work on http only and got the login to work, but I'd love to get this functional for https. Any advice or information would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
The file you want to change is the following: https://github.com/mawoka-myblock/ClassQuiz/blob/master/Caddyfile-docker If you already have nginx or apache running, you can put ClassQuiz behind it, so you don't have to change anything regarding Caddy. That's what I also do at classquiz.de. |
Beta Was this translation helpful? Give feedback.
The file you want to change is the following: https://github.com/mawoka-myblock/ClassQuiz/blob/master/Caddyfile-docker
You can replace the
:8080
with your domain and Caddy will automatically get an https-certificate for you.If you already have nginx or apache running, you can put ClassQuiz behind it, so you don't have to change anything regarding Caddy. That's what I also do at classquiz.de.