nginx/serve/unindent

This commit is contained in:
Marc Beninca 2019-08-05 12:08:10 +02:00
parent ca7a37f689
commit 90ebf4d7d4

View file

@ -5,34 +5,34 @@ Serve
:: ::
server { server {
listen 80; listen 80;
server_name _; server_name _;
location "/mirrors" { location "/mirrors" {
root "/"; root "/";
autoindex on; autoindex on;
} }
location "/" { location "/" {
root "/data/http"; root "/data/http";
autoindex on; autoindex on;
} }
} }
server { server {
listen 443 ssl http2; listen 443 ssl http2;
server_name "sous.domaine.tld"; server_name "sous.domaine.tld";
ssl_certificate "/etc/nginx/certificates/nom.crt"; ssl_certificate "/etc/nginx/certificates/nom.crt";
ssl_certificate_key "/etc/nginx/certificates/nom.key"; ssl_certificate_key "/etc/nginx/certificates/nom.key";
location "/static" { location "/static" {
root "/data/https"; root "/data/https";
default_type "text/html"; default_type "text/html";
index "index.html"; index "index.html";
} }
location "/" { location "/" {
proxy_pass "http://127.0.0.1:8069"; proxy_pass "http://127.0.0.1:8069";
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;
} }
} }
Redirect http to https Redirect http to https
---------------------- ----------------------