GNU bug report logs -
#46961
Nginx and certbot cervices don't play well togther
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Sat, 6 Mar 2021 08:16:02 UTC
Severity: normal
Done: Clément Lassieur <clement <at> lassieur.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Also, I forgot, I think it would be great to have somewhere in the doc
an example of minimal config.scm that works. I know we can't do proper
testing because we depend of certbot service but that would make it
easier for a lot of people to test it. Maybe such example is already in
the docs and I haven't seen it though.
Here is the one I used:
--8<---------------cut here---------------start------------->8---
(use-modules (gnu) (gnu tests))
(use-package-modules web)
(use-service-modules certbot networking web)
(operating-system
(inherit %simple-os)
(services
(cons*
(service dhcp-client-service-type)
(service nginx-service-type
(nginx-configuration
(server-blocks
(list
(nginx-server-configuration
(listen '("443 ssl"))
(server-name '("test.lassieur.org"))
(ssl-certificate
"/etc/certs/test.lassieur.org/fullchain.pem")
(ssl-certificate-key
"/etc/certs/test.lassieur.org/privkey.pem"))))))
(service certbot-service-type
(certbot-configuration
(certificates
(list
(certificate-configuration
(domains '("test.lassieur.org")))))))
%base-services)))
--8<---------------cut here---------------end--------------->8---
This bug report was last modified 1 year and 107 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.