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