From 079066bc153f3a6fe84b5da0b8fa8e584641b46d Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Wed, 1 Mar 2017 21:27:03 +0000 Subject: overall revision --- tools/nginx.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tools/nginx.html') 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 @@

2. Certificates

+

2.1. Lets encrypt

+ +

Example of nginx location block on public pmwiki setup;

+ +
+        #ACME challenge
+        location ^~ /.well-known {
+              allow all;
+              alias /srv/www/c9-pmwiki/pub/cert/.well-known/;
+              default_type "text/plain";
+              try_files $uri =404;
+        }
+        
+ +
+        # certbot certonly --email user@mail.org --webroot -w /srv/www/c9-pmwiki/pub/cert/-d c9.root.sx
+        
+ +

2.2. Self certificate

Certificates allow a more secure connection. Lets create self-signed certificate;

-- cgit 1.4.1-2-gfad0