21 lines
704 B
Plaintext
21 lines
704 B
Plaintext
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://;
|
|
}
|
|
}
|