Создал(а) 'nginx_ssl.conf'
This commit is contained in:
parent
9b286ce2a4
commit
fa62b6ba9a
19
nginx_ssl.conf
Normal file
19
nginx_ssl.conf
Normal file
@ -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://;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user