-
-
Save lman/70ee78da3ae1c2461c0429bf847dd08b to your computer and use it in GitHub Desktop.
Revisions
-
lman revised this gist
Dec 14, 2022 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,7 @@ server { listen 80; server_name .example.com; location / { return 301 https://$host$request_uri; } -
donpdonp renamed this gist
Jun 3, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ # /etc/nginx/sites-enabled/example.com.conf server { listen 80; server_name .example.com; -
donpdonp revised this gist
Jun 3, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # one time setup $ go get -u github.com/xenolf/lego $ lego --email [email protected] --domains example.com --path /var/letsencrypt --webroot /var/letsencrypt/webcache run # renew (can be run from cron) $ lego --email [email protected] --domains example.com --path /var/letsencrypt --webroot /var/letsencrypt/webcache renew -
donpdonp renamed this gist
Jun 3, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
donpdonp revised this gist
Jun 3, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ server { server_name .example.com; root /var/letsencrypt/webcache; location /.well-known { try_files $uri =404; } location / { return 301 https://$host$request_uri; -
donpdonp revised this gist
Jun 3, 2016 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,6 @@ # one time setup $ go get -u github.com/xenolf/lego $ lego --email [email protected] --domains example.com --webroot /var/letsencrypt/webcache run # renew (can be run from cron) $ lego --email [email protected] --domains example.com --webroot /var/letsencrypt/webcache renew -
donpdonp revised this gist
Jun 3, 2016 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ # use 'run' the first time, renew after that $ lego --email [email protected] --domains example.com --webroot /var/letsencrypt/webcache renew This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ server { listen 80; server_name .example.com; root /var/letsencrypt/webcache; location /.well-known { try_files $uri 404; } -
donpdonp revised this gist
Jun 3, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,2 @@ # use 'run' the first time, renew after that $ lego --email letsencrypt@example.com --domains example.com --webroot /home/donp/letsencrypt renew -
donpdonp revised this gist
Jun 3, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ # use 'run' the first time, renew after that $ lego --email [email protected] --domains cointhink.com --webroot /home/donp/letsencrypt renew -
donpdonp created this gist
Jun 3, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ server { listen 80; server_name .example.com; root /var/letsencrypt/cache; location /.well-known { try_files $uri 404; } location / { return 301 https://$host$request_uri; } } server { listen 443 ssl; server_name .example.com; ssl_certificate /var/letsencrypt/certificates/example.com.crt; ssl_certificate_key /var/letsencrypt/certificates/example.com.key; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://internal-content-host; } }