Update onlyoffice
This commit is contained in:
parent
31d542e70e
commit
5d2c59d0bc
|
@ -12,57 +12,6 @@ fastcgi_cache_path /var/cache/nginx/onlyoffice
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
|
||||
location ~* (\.(?:jpg|jpeg|gif|png|svg|ico)$)|(.*bundle/(?!clientscript).*) {
|
||||
root /var/www/onlyoffice/WebStudio/;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_pass fastcgi_backend;
|
||||
|
||||
gzip on;
|
||||
gzip_comp_level 2;
|
||||
gzip_min_length 1000;
|
||||
gzip_proxied expired no-cache no-store private auth;
|
||||
gzip_types text/plain application/x-javascript text/xml text/css application/xml;
|
||||
|
||||
fastcgi_param HTTP_X_REWRITER_URL $scheme://$http_host;
|
||||
fastcgi_param SERVER_NAME $host;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO "";
|
||||
fastcgi_param QUERY_STRING $query_string;
|
||||
fastcgi_param REQUEST_METHOD $request_method;
|
||||
fastcgi_param CONTENT_TYPE $content_type;
|
||||
fastcgi_param CONTENT_LENGTH $content_length;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
fastcgi_param REQUEST_URI $request_uri;
|
||||
fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
|
||||
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
fastcgi_param REMOTE_ADDR $remote_addr;
|
||||
fastcgi_param REMOTE_PORT $remote_port;
|
||||
fastcgi_param SERVER_ADDR $server_addr;
|
||||
fastcgi_param SERVER_PORT $server_port;
|
||||
fastcgi_param HTTPS $https if_not_empty;
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_send_timeout 600;
|
||||
|
||||
fastcgi_temp_path /var/cache/nginx/tmp 1 2;
|
||||
fastcgi_cache onlyoffice;
|
||||
fastcgi_cache_key "$scheme|$request_method|$host|$request_uri|$query_string";
|
||||
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
|
||||
fastcgi_cache_valid 1d;
|
||||
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
|
||||
|
||||
add_header X-Fastcgi-Cache $upstream_cache_status;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
expires max;
|
||||
}
|
||||
|
||||
|
||||
location / {
|
||||
root /var/www/onlyoffice/WebStudio/;
|
||||
index index.html index.htm default.aspx Default.aspx;
|
||||
|
@ -106,6 +55,22 @@ server {
|
|||
fastcgi_param HTTPS $https if_not_empty;
|
||||
fastcgi_read_timeout 600;
|
||||
fastcgi_send_timeout 600;
|
||||
|
||||
location ~* (\.(?:jpg|jpeg|gif|png|svg|ico)$)|(.*bundle/(?!clientscript).*) {
|
||||
fastcgi_pass fastcgi_backend;
|
||||
|
||||
fastcgi_temp_path /var/cache/nginx/tmp 1 2;
|
||||
fastcgi_cache onlyoffice;
|
||||
fastcgi_cache_key "$scheme|$request_method|$host|$request_uri|$query_string";
|
||||
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
|
||||
fastcgi_cache_valid 1d;
|
||||
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
|
||||
|
||||
add_header X-Fastcgi-Cache $upstream_cache_status;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
expires max;
|
||||
}
|
||||
}
|
||||
|
||||
location ~ ^/(coauthoring|spellchecker|OfficeWeb|OnlineEditorsExample|CanvasService\.ashx|ConvertService\.ashx|fileDownloader\.ashx|FileUploader\.ashx|FontService\.ashx|ResourceService\.ashx|TrackingService\.ashx|UploadService\.ashx) {
|
||||
|
@ -124,4 +89,4 @@ server {
|
|||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue