Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's Encrypt setup? #35

Open
dmarcsift opened this issue Feb 5, 2021 · 2 comments
Open

Let's Encrypt setup? #35

dmarcsift opened this issue Feb 5, 2021 · 2 comments

Comments

@dmarcsift
Copy link

Somewhat a noob when it comes to Docker but successfully spun up PatchServer in a Docker container on a server. Wondering how I can get SSL enabled on it using Let's Encrypt? I'm sure someone has done this before, and I know how to get LE on a regular VM/bare metal server. I've never done it with a container before. Any help would be appreciated.

@mattMali
Copy link

a. https://certbot.eff.org/instructions
b. https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
c. https://github.com/brysontyrrell/PatchServer/blob/develop/docs/setup/docker.md#enable-proxy-support

PatchServer (run.py) doesn't have built-in SSL/HTTPS certificate binding/functionality, although it does support the use of an HTTP proxy/forwarder...Nginx/Apache/etc can be used to redirect/forward the non-SSL traffic from PatchServer, for example:

--> PatchServer HTTP port == tcp,5000
--> Nginx HTTPS/SSL port == tcp,5443
--> Docker/Container/Host == host.domain
--> Jamf/patchServer+SSL == https://host.domain:5443/jamf/v1

@brysontyrrell
Copy link
Owner

@mattMali would you like to submit a PR for the documentation about basic LetsEncrypt setup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants