Back to Forum Home Page

You must be a registered user (on-premise or cloud) to add any post. To get access, enter your registered Emaill address below and we will email you the access token. Enter your token along with your email address to add the post. You can use your last received token if you have already generated one.

Q. How to get access to FlinkISO Forum?

Ans:In order to able to post, you must be a registered user either with FlinkISO either On-premise or Cloud. You can login to the forum via using your email address, which you or your administrator used duing the registration on the websile. Once you have the email address, use the same email addres and generate a token. We will send you the token on the same email address. Use that token along with the email address to login. You can read posts without login.

Home > Server Setup

Configuration OnlyOffice Text Editor API Through Nginx


I’m trying to install a demo of FlinkISO on my Ubuntu server. I already have an Nginx reverse proxy serving other services, so I had to configure it to also serve FlinkISO.  Everything works fine until I try to open the OnlyOffice text editor. At that point, I get connection errors related to some required files. I’ve already added several custom routes in Nginx to serve those files, but it’s still not working 100%. Can someone help me review my Nginx config to see if it's correct?

server {
   listen 443 ssl;
   listen [::]:443 ssl;
   server_name mydomain.com;

   ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
   ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;

   client_max_body_size 60M;

   location /phpmyadmin {
       root /usr/share/;
       index index.php index.html index.htm;

       location ~ ^/phpmyadmin/(.+\.php)$ {
           try_files $uri =404;
           root /usr/share/;
           fastcgi_pass unix:/run/php/php8.4-fpm.sock;
           fastcgi_index index.php;
           fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
           include fastcgi_params;
       }

       location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
           root /usr/share/;
       }
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/document_editor_service_worker.js$ {
       alias /var/www/onlyoffice/documentserver/sdkjs/common/serviceworker/document_editor_service_worker.js;
       add_header Content-Type application/javascript;
       add_header Access-Control-Allow-Origin *;
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/sdkjs/(.*\.wasm)$ {
       alias /var/www/onlyoffice/documentserver/sdkjs/$1;
       add_header Access-Control-Allow-Origin *;
       add_header Content-Type application/wasm;
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/sdkjs/(.*)$ {
       alias /var/www/onlyoffice/documentserver/sdkjs/$1;
       add_header Access-Control-Allow-Origin *;
       add_header Content-Type application/javascript;
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/web-apps/(.*)$ {
       alias /var/www/onlyoffice/documentserver/web-apps/$1;
       add_header Access-Control-Allow-Origin *;
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/doc/ {
       proxy_pass http://localhost:8093;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       proxy_set_header Host $host;
       proxy_read_timeout 3600;
   }

   location ~ ^/[\d\.]+-[0-9a-z]+/advance_search/ {
       proxy_pass http://localhost:8093;
       proxy_http_version 1.1;
       proxy_set_header Host $host;
       proxy_set_header X-Real-IP $remote_addr;
   }

   location /web-apps/ {
       proxy_pass http://localhost:8093;
       proxy_http_version 1.1;
       proxy_set_header Host $host;
       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 $scheme;
   }

   location / {
       proxy_pass http://localhost:8093;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection 'upgrade';
       proxy_set_header Host $host;
       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 $scheme;
   }
}

My last error was a 404 status for this URL https://andinaplanta.com/9.0.2-228b3e89b2ef83b6035d7b76ca15048d/doc/3136036568/c/?shardkey=3136036568&EIO=4&transport=polling&t=PVTpNM9 and WebSocket connection to 'wss://andinaplanta.com/9.0.2-228b3e89b2ef83b6035d7b76ca15048d/doc/3136036568/c/?shardkey=3136036568&EIO=4&transport=websocket' failed: value @ socket.io.min.js:6

I hope someone can give me a hand. Thanks!

6 days ago | Open | By: Adrian Bascunan