You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, looking for some help.
Trying to get it to work with a local nextcloud instance (localhost) seems not to work. I'm not sure whether nextcloud has to be served via SSL or requires an extra domain but I could not get it to save my annotation because the communication from the pdfdraw-server to the nextcloud api failed.
I also tried splitting the nextcloud and the pdfdraw server into separate configurations but that failed more because then the localhost domain was not the same in the pdfdraw instance compared to the nextcloud one ...
For this I "fixed" the pdfdraw server code to use host.docker.internal instead of localhost for the separate docker-compose configs but this did not work/same error.
So, the socket.io communication works but all requests back to nextcloud fail.
Does it require some extra nginx configuration? Described in #16 ? But I'm not sure how exactly, as the nextcloud server is also on localhost and doesn't use SSL.
Update: same issue/error when I run the pdfdraw server locally (not in docker).
I then need to update the URL to use the docker host ip (some stackoverflow answer) to get the correct address:
What worked, replace all https.request with http.request ... Seems kinda logical for local test instance.
BUT, just running the pdfdraw server locally works. Trying to run it in a docker container fails with
Not exactly sure why. (Well, somehow the localhost:8080 is not reachable, but substituting it with app:80 to get the correct IP fails, too.)
Not sure whether we can just include this into code, so that it looks which Token -> iss URL is returned and if it is not HTTPS it falls back to HTTP? Makes it insecure, which for local test instances might not matter, but it is definitely not for deployment, so I don't really expect it to make it into the code base.
If you run the different parts in separate Docker containers, 127.0.0.1 is each container itself, i.e. 127.0.0.1 on the pdfdraw-server is a different 127.0.0.1 than in app. You will have to configure a external URL as backend server URL of pdfdraw and vice versa.
Uh oh!
There was an error while loading. Please reload this page.
Hi, looking for some help.
Trying to get it to work with a local nextcloud instance (localhost) seems not to work. I'm not sure whether nextcloud has to be served via SSL or requires an extra domain but I could not get it to save my annotation because the communication from the pdfdraw-server to the nextcloud api failed.
nextcloud:
localhost:8080
pdfdraw-server:
localhost:8081
My docker-compose.yml
Nexcloud app configuration:
-> secret: test-key
-> host: http://localhost:8081
My errors
And errors while annotation/drawing (probably because of the error above):
I also tried splitting the nextcloud and the pdfdraw server into separate configurations but that failed more because then the
localhost
domain was not the same in the pdfdraw instance compared to the nextcloud one ...For this I "fixed" the pdfdraw server code to use
host.docker.internal
instead oflocalhost
for the separate docker-compose configs but this did not work/same error.So, the socket.io communication works but all requests back to nextcloud fail.
Does it require some extra nginx configuration? Described in #16 ? But I'm not sure how exactly, as the nextcloud server is also on localhost and doesn't use SSL.
Update: same issue/error when I run the pdfdraw server locally (not in docker).
I then need to update the URL to use the docker host ip (some stackoverflow answer) to get the correct address:
Changing
config.allow_invalid_certificates
andconfig.use_auto_ecdh_curve
did not help.The text was updated successfully, but these errors were encountered: