From 90ebf4d7d423cd4c1bfa25409bcec2977e92b82c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 5 Aug 2019 12:08:10 +0200 Subject: [PATCH] nginx/serve/unindent --- in/public/web/nginx/serve.rst | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/in/public/web/nginx/serve.rst b/in/public/web/nginx/serve.rst index ed8a2b2..3b4ac0e 100644 --- a/in/public/web/nginx/serve.rst +++ b/in/public/web/nginx/serve.rst @@ -5,34 +5,34 @@ Serve :: - server { - listen 80; - server_name _; - location "/mirrors" { - root "/"; - autoindex on; - } - location "/" { - root "/data/http"; - autoindex on; - } - } - server { - listen 443 ssl http2; - server_name "sous.domaine.tld"; - ssl_certificate "/etc/nginx/certificates/nom.crt"; - ssl_certificate_key "/etc/nginx/certificates/nom.key"; - location "/static" { - root "/data/https"; - default_type "text/html"; - index "index.html"; - } - location "/" { - proxy_pass "http://127.0.0.1:8069"; - proxy_redirect off; - proxy_set_header Host $host; - } - } + server { + listen 80; + server_name _; + location "/mirrors" { + root "/"; + autoindex on; + } + location "/" { + root "/data/http"; + autoindex on; + } + } + server { + listen 443 ssl http2; + server_name "sous.domaine.tld"; + ssl_certificate "/etc/nginx/certificates/nom.crt"; + ssl_certificate_key "/etc/nginx/certificates/nom.key"; + location "/static" { + root "/data/https"; + default_type "text/html"; + index "index.html"; + } + location "/" { + proxy_pass "http://127.0.0.1:8069"; + proxy_redirect off; + proxy_set_header Host $host; + } + } Redirect http to https ----------------------