witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/examples/nginx_luminotes

55 lines
1009 B
Plaintext

gzip_comp_level 4;
gzip_min_length 1100;
gzip_types text/plain text/html text/css application/x-javascript;
upload_progress luminotes 1m;
upstream luminotes {
server 127.0.0.1:8081;
}
server {
listen 80;
server_name yourhostname.com;
access_log /var/log/nginx/luminotes.access.log;
location / {
proxy_pass http://luminotes;
proxy_redirect off;
client_max_body_size 505m;
track_uploads luminotes 30s;
}
location ^~ /files/progress {
report_uploads luminotes;
}
location /download/ {
internal;
alias /path/to/luminotes_user/.luminotes/files/;
}
location /download_product/ {
internal;
alias /path/to/luminotes/products/;
}
location /favicon.ico {
root /path/to/luminotes/static/images;
}
location /robots.txt {
root /path/to/luminotes/static/html;
}
location /static/ {
root /path/to/luminotes;
}
error_page 500 502 503 504 /reload.html;
location = /reload.html {
root /path/to/luminotes/static/html;
}
}