Update docs

main
Leonid Maslakov 4 months ago
parent ef7c567d4c
commit 7f2470dbfc

@ -7,7 +7,7 @@ events {
http {
error_log /var/log/nginx/error.log warn;
server_tokens off; # Disables emitting nginx version on error pages and in the “Server” response header field.
server_tokens off; # Disables emitting nginx version on error pages and in the "Server" response header field.
ssl_protocols TLSv1.2 TLSv1.3; # TLSv1.2 enables HTTPS on older devices.
@ -16,8 +16,9 @@ http {
proxy_http_version 1.1;
# Required for Lenpaste to work correctly.
# Required for Lenmonitor to work correctly.
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
@ -31,7 +32,7 @@ server {
location / {
proxy_pass http://localhost:8000/;
#return 301 https://$host$request_uri; - redirect to HTTPS
#return 301 https://$host$request_uri; - redirect from HTTP to HTTPS
}
# Required for Lets Encrypt

Loading…
Cancel
Save