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
SSL documentation contains a small bug #2381 #2383
Conversation
Update of example to be more consistent with the next one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for taking the time to raise an issue and even contribute a PR to resolve it! Very much appreciated 😀
However in this case there appears to be a misunderstanding, and perhaps we could better adjust the docs to clarify that instead?
The path to a local /etc/letsencrypt
system path is correct. On a Linux system this is where certbot run locally without docker would install certs to, as per the link to certbot docs in that section.
The example was showing how you could mount your local certs to your docker container this way. Whereas the examples that follow after it are provisioned via separate docker containers (one being certbot). I can understand why that might seem confusingly similar and trip a reader up, especially if they're less familiar with either Linux or running certbot outside of a container.
That said, since we're a docker focused project, perhaps we don't need to cover this difference and could just focus on the dockerized certbot example that follows?
I did not write the original docs, only revised them. Did part of the confusion also come from the switching between docker-compose
and the docker
CLI examples?
There is a feature that our docs generator provides for tabbed content (additional related docs), it could probably be updated at a later point to include both, while defaulting to docker-compose
config? No need to worry about that for this PR, but your input would be appreciated :)
TL;DR: I am reluctant to merge this given the above context, the change is not correct. I am open towards a revision that better clears up any confusion in our docs however.
I followed the example and used the cerbot docker image, as you said it does not store the data at /etc/letsencrypt like normal certbot so I was confused why mailserver crashed..... Maybe it could make sense to change the docs to add a placeholder in the local path and explain how this might be changed?
where is either Or we could use the following parameters for the local certbot call: And on a different topic: |
I think it'd make more sense just to drop the non-docker certbot example. It's not going to really be lost due to version control in case we ever need to restore it.
I suppose? I imagine the example was intended for users already using certbot elsewhere and familiar with it, or as a quick option if not using the other provisioners. I haven't looked through the history for when each guide was introduced to the prior Github Wiki before migration and revising to our current docs generator. Most of the content was community contributed and had fallen out of date, I've trimmed some of it away since. Should be safe to trim away the non-docker certbot portion, or make it a collapsed by default section.
Contributions are welcome. If you can fit it in nicely for the SSL docs that's great, otherwise we seem to allow general tips/guides in the examples section. |
Maybe it could also make sense to create a second example for the letsencrypt with docker and keep normal letsencrypt as it was before?
I made an update to my commit based on comment from polarathene: For me, it could also make sense to create a second example for the letsencrypt with docker and keep normal letsencrypt as it was before? Or we could also hide the other example or re-order it? |
Documentation preview for this PR is ready! 🎉 Built with commit: e40d732 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too fond of the mostly duplicate/repeated example here where the only change is the local folder being mounted into the container.
The initial LE section I think is meant to be less about Certbot and a general overview of what's required to use LE certs (set the hostname and optional domainname, set the SSL_TYPE
env and mount your certs to the expected location).
After that were examples of popular LE provisioners (not too sure about the NAS one).
If you feel this reduces confusion, I'm happy to approve it. I've been short of time lately, but I do recall my backlog tasks cover refactoring our SSL/TLS support to simplify configuration, at which point I'll revise the docs again too.
That is what the PR currently does right? I've approved it.
The current order of non-docker, then docker is preferred. The non-docker description looks more of a terse overview with more details for dockerized approaches, it just didn't communicate it that well, causing some confusion to the reader unfortunately. I'm happy to merge this and make changes if we get any more feedback about it.
It should be ok as long as it has a heading to add it to the sidebar for a quick navigation overview. Most readers are likely to ignore anything not relevant to them. If the content would be larger than the nginx sections or you feel is too niche, you might want to write a separate guide in the examples page and add a mention of it on the SSL docs page instead. I just noticed that the section being added to here has a bug (before your contribution). It's rendering everything as bullet points, even though only the first two items should be, then an ordered list. Probably needs something to interrupt the two lists, perhaps part of Also with your addition, the last ordered list item is now rendering as |
Oops, figured this is fine to merge because of the approval... I will take care of the rendering if necessary to clean up my premature merge. |
Fixes a documentation error by which a list would not be rendered correctly. This has been taken care of.
* follow up on #2383 Fixes a documentation error by which a list would not be rendered correctly. This has been taken care of. * update the `README.md` I felt the need to update the README for several reasons: 1. LDAP issues that the core maintainers team cannot really resolve 2. Cleaning up the somewhat messy structure near the end The first point goes without explanantion. The second points includes: 2.1. The tagging convention is now easier to read and understand 2.2. Some bullut points or notes have been inlined to "stick" more to the content that it actually belongs to 2.3. The note about the "old" `setup.sh` for DMS `10.1.0` has been removed as it is obsolete now. We encourage users to upgrade to `10.4.0` anyways. 2.4. The markdown code highlighting is now using `CONSOLE` instead of `BASH` because `CONSOLE` is more appropriate. 2.5. Capitalized headings 2.6. Updated the section about `./setup.sh help` to be in one place now instead of two 2.7. DKIM key generation does now not interfere with user account creation. * adjusted content to PR suggestions
Update of example to be more consistent with the next one
Description
Update of examples
Fixes #2381
Type of change
Checklist:
docs/
)