Custom certificates for nginx
stefcho034 opened this issue · 3 comments
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!
I don't maintain this project, but by reading:
sup3rS3cretMes5age/nginx/nginx.tmpl
Line 95 in 0222006
I think you can have a default certificate with that file patch.
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
@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.