Comments (4)
@rekXx were you able to successfully install the server, annotate and download documents?
Unfortunately I am stuck at a connection problem as mentioned by @Deltafox01.
Cant make notes in PDFs.... "establishing connection".... is being shown when i open a PDF file in Nextcloud....
running the server doesn't throw any errors. I just get:
$ nodejs server.js
Using pdftk to run as pdftk
Using svg2pdf to run as svg2pdf
listening on *:8080
The problem is already mentioned in another thread, but no solution has been posted so far:
#14
Ok, I got it going while writing this post and fiddeling around with some configurations.
Now my setup looks like this:
Nextcloud and pdf-annotations server are on two different virtual machines behind a third vm that acts as a reverse proxy for the first two. The reverse proxy does the ssl termination and forwards the traffic to the corresponding server via http on the local network (on the same server).
Directing the wan-port to the reverse proxy in my setup is crucial, because pdf-annotations server seems to force a ssl connection back to the nextcloud instance.
This is the additional entry for the nginx reverse proxy:
(I needed to use 8081 as 8080 is already in use. But this setup should as well allow the usage of port 443 for both nextcloud and pdf-annotations server. But for testing I don't want to mess around with the working configuration)
192.168.0.14 = reverse proxy server
192.168.0.17 = pdf-annotations server
server {
listen 8081 ssl http2;
server_name nextcloud.[...].net 192.168.0.14;
access_log /var/log/nginx/nextcloud.access.log;
error_log /var/log/nginx/nextcloud.error.log;
include snippets/nextcloud.[...].conf;
include snippets/ssl-params.conf;
client_max_body_size 16G;
location /socket.io {
include snippets/proxy-params.conf;
proxy_ssl_protocols TLSv1.3;
proxy_buffering off;
proxy_set_header Connection "Keep-Alive";
proxy_cache_bypass $http_upgrade;
proxy_max_temp_file_size 8192m;
proxy_pass http://192.168.0.17:8080; #pdf annotations server
}
location /download {
include snippets/proxy-params.conf;
proxy_ssl_protocols TLSv1.3;
proxy_buffering off;
proxy_set_header Connection "Keep-Alive";
proxy_cache_bypass $http_upgrade;
proxy_max_temp_file_size 8192m;
proxy_pass http://192.168.0.17:8080; #pdf annotations server
}
}
Not quite sure whether all entries are necessary (did some copy and paste), but it works. Maybe you could give me some feedback on that.
I also added an entry in /etc/hosts
of the pdf-annotations server to resolve the dns name to the local ip address of the reverse proxy 192.168.0.14
(in my case).
The last trick after successfully opening the pdf file without the connecting
message was to click on the pencil icon in the top right corner and selcting the pencil.
from pdfdraw.
There is a file named "config.js.in"
Renaming/copying this to "config.js" worked for me.
from pdfdraw.
@rekXx were you able to successfully install the server, annotate and download documents?
from pdfdraw.
There is a file named "config.js.in"
Renaming/copying this to "config.js" worked for me.
Thanks!
It did, a part of it, work for me!
Server is starting, but thats it! Cant make notes in PDFs.... "establishing connection".... is being shown when i open a PDF file in Nextcloud.... i tried everything.... localhost, Server IP, full Server Domain/Name, different Ports....
:-(
from pdfdraw.
Related Issues (20)
- package.json is not included in app releases
- Please upgrade the pdfdraw server to be compatible with python3 HOT 6
- Please support Nextcloud's external storage
- Do updates remove the changed config.js file? HOT 6
- 404 retrieving original pdf from nextcloud HOT 3
- Reimplement server in php and/or eliminate backend HOT 1
- Annotation tools? HOT 1
- Download error when using GROUP FOLDERS HOT 1
- Some fixes HOT 1
- "Connecting to server please wait" HOT 6
- Fundamentally bad design HOT 4
- [webpack-cli] HookWebpackError: Not supported HOT 2
- Not Found The requested URL was not found on this server. HOT 1
- Cannot install plugin HOT 2
- Connection is interrupted. restablishing connection
- Install failed: database.xml file no longer supported. HOT 2
- issue: OCP\\App\" not found"
- Doesn't install in NextCloud 25 HOT 1
- NC25
- Any updates? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfdraw.