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

Custom certificates for nginx #32

Closed
stefcho034 opened this issue Feb 7, 2020 · 3 comments
Closed

Custom certificates for nginx #32

stefcho034 opened this issue Feb 7, 2020 · 3 comments

Comments

@stefcho034
Copy link

Hi!

Do you now how can I insert my custom certificates for the nginx image ? And also - stop using generation of letsencrypt certs generation ?

Regards!

@Haroenv
Copy link
Contributor

Haroenv commented Feb 7, 2020

I don't maintain this project, but by reading:

{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}

I think you can have a default certificate with that file patch.

@stefcho034
Copy link
Author

Yes, I think so.

I already renamed my cert and key as default.crt and default.key. I have copied them in nginx project folder - nginx/certs in and included the following in Dockerfile:

FROM nginx:latest

COPY nginx/certs/default.crt etc/nginx/certs/default.crt
COPY nginx/certs/default.key etc/nginx/certs/default.key

That is working scenario for cert replacement, but suppose that I have other mistake with nginx, because it start to use my cert and respond Internal Server Error 500

@eranchetz
Copy link
Collaborator

@stefcho034 I removed the nginx as a dependcy as I feel it wasn't "simple" enough, let me open a new issue with enabling this feature directly with the go code.

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

No branches or pull requests

3 participants