From 45af3d4f192efd3a7fe22dd37d811e539063f2a5 Mon Sep 17 00:00:00 2001 From: Zack Date: Sat, 13 Feb 2016 20:23:10 -0500 Subject: [PATCH] Update README.md Former-commit-id: 7c91481f5eadd309b7547cee730dc397f975a658 [formerly decaccea59c27e736371d97cc4de9814f8852b31] [formerly c6f7ceea626c74a23df4343d1487804346b5ce4c [formerly 822b14b6bcbab1247d02fae6c3e2a33ca50d9db5 [formerly f00d69399b41066ea3826f8e2c20e1e20e23f8fa]]] Former-commit-id: 8578c7f2bf0879053e46225465cf11fad18eb52b [formerly 8ecd2d1d3847cfddecd6187907a47ec8fb7246e4] Former-commit-id: f5abfd0360f7efbba4c761ae022f9d65aaae31a2 Former-commit-id: 04c2cc37cfccfdf5204b2baf12182f5b03d428a9 --- letsencrypt/README.md | 55 ------------------------------------------- 1 file changed, 55 deletions(-) diff --git a/letsencrypt/README.md b/letsencrypt/README.md index 307568e..156f343 100644 --- a/letsencrypt/README.md +++ b/letsencrypt/README.md @@ -5,58 +5,3 @@ git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt sudo ./letsencrypt-auto certonly --standalone --email youremail@somewhere.com -d yourserver.com ``` - -And then replace the NGINX file in `../install` with the following: - -``` -server { - listen 80; - server_name ADDRESS; - rewrite ^ https://$server_name$request_uri? permanent; -} - -server { - # SERVER BLOCK FOR ADDRESS - listen 443 ssl; - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - ssl_certificate /etc/letsencrypt/live/ADDRESS/cert.pem; - ssl_certificate_key /etc/letsencrypt/live/ADDRESS/privkey.pem; - - access_log /etc/nginx/logs/access-ADDRESS.log; - error_log /etc/nginx/logs/error-ADDRESS.log info; - root CUR_DIR; - server_name ADDRESS; - - # Media: images, icons, video, audio, HTC - location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { - expires 1M; - access_log off; - add_header Cache-Control "public"; - } - - # CSS and Javascript - location ~* \.(?:css|js)$ { - expires 1y; - access_log off; - add_header Cache-Control "public"; - } - - location ^~ /static { - try_files $uri $uri/ =404; - } - - 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_set_header X-NginX-Proxy true; - - proxy_pass https://127.0.0.1:PORT; - proxy_redirect off; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } -} -```