diff options
author | Silvino Silva <silvino@bk.ru> | 2017-03-01 21:27:03 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2017-05-13 16:40:44 +0100 |
commit | 079066bc153f3a6fe84b5da0b8fa8e584641b46d (patch) | |
tree | 5ed282dccdd6b8004a86f9c765843f0f5852f9c9 /tools/nginx.html | |
parent | 40fc398cab05e1ae769554a50fb423ca38c3bfb6 (diff) | |
download | doc-079066bc153f3a6fe84b5da0b8fa8e584641b46d.tar.gz |
overall revision
Diffstat (limited to 'tools/nginx.html')
-rw-r--r-- | tools/nginx.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/nginx.html b/tools/nginx.html index 6d4f355..a85cf0e 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -43,6 +43,25 @@ <h2 id="certs">2. Certificates</h2> + <h3 id="letsencrypt">2.1. Lets encrypt</h2> + + <p>Example of nginx location block on public pmwiki setup;</p> + + <pre> + #ACME challenge + location ^~ /.well-known { + allow all; + alias /srv/www/c9-pmwiki/pub/cert/.well-known/; + default_type "text/plain"; + try_files $uri =404; + } + </pre> + + <pre> + # certbot certonly --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d c9.root.sx + </pre> + + <h3 id="mancert">2.2. Self certificate</h2> <p>Certificates allow a more secure connection. Lets create self-signed certificate;</p> |