From fa62b6ba9a02d62bdfac3e0306d1b59902bc283b Mon Sep 17 00:00:00 2001 From: dimon Date: Fri, 1 Apr 2022 16:53:44 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'nginx=5Fssl.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx_ssl.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nginx_ssl.conf diff --git a/nginx_ssl.conf b/nginx_ssl.conf new file mode 100644 index 0000000..0535895 --- /dev/null +++ b/nginx_ssl.conf @@ -0,0 +1,19 @@ +server { + listen 443 ssl; + server_name _; + ssl_certificate /letsencrypt/fullchain.pem; + ssl_certificate_key /letsencrypt/privkey.pem; + + client_max_body_size 8M; + + # Proxy to the Leanote server + location / { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_set_header X-Forwarded-Host $http_host; + proxy_set_header Host $http_host; + proxy_max_temp_file_size 0; + proxy_pass http://127.0.0.1:9000; + proxy_redirect http:// https://; + } \ No newline at end of file