forked from ONLYOFFICE/DocumentServer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathonlyoffice-nginx.conf
52 lines (45 loc) · 1.3 KB
/
onlyoffice-nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
##upstream fastcgi_backend {
## server 127.0.0.1:9001;
## keepalive 32;
##}
server {
listen 80;
gzip on;
gzip_types text/plain
text/xml
text/css
text/csv
application/xml
application/javascript
application/x-javascript
application/json
application/octet-stream
application/pdf
application/rtf
application/msword
application/vnd.ms-excel
application/vnd.ms-powerpoint;
#application/vnd.oasis.opendocument.text
#application/vnd.oasis.opendocument.spreadsheet
#application/vnd.oasis.opendocument.presentation
#application/vnd.openxmlformats-officedocument.wordprocessingml.document
#application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
#application/vnd.openxmlformats-officedocument.presentationml.presentation;
location / {
root /Users/user/saoo/static;
index index.html;
}
location /CanvasService.ashx {
proxy_pass http://localhost:8080/PseudoOfficeResourceServer/CanvasService.ashx;
proxy_http_version 1.1;
}
location /ResourceService.ashx {
proxy_pass http://localhost:8080/PseudoOfficeResourceServer/ResourceService.ashx;
proxy_http_version 1.1;
}
location /coauthoring/ {
proxy_pass http://localhost:8000/;
proxy_http_version 1.1;
}
client_max_body_size 100m;
}