Open BetterToAutomateTheWorld opened 4 years ago
Sorry to necrobump, but did you ever manage to make Cryptpad work with NPM?
On my side, I've created 2 hosts in NPM (declared in my DNS) pointing the same cryptpad container on port 3000.
In the cryptpad config.js file I've setup:
[...]
httpUnsafeOrigin: "https://cryptpad_first.mydomain.com",
[...]
httpSafeOrigin: "https://cryptpad_second.mydomain.com",
[...]
httpAddress: '::',
[...]
And it works.
Issue is now considered stale. If you want to keep it open, please comment :+1:
Hi,
First of all, thank you very much for nginx-proxy-manager, it's such a great tool !
What is troubling you?
Adapt the proper configuration for nginx-proxy-manager to be able to work with cryptpad docker container (it's not a cryptpad issue, it's a nginx configuration issue)
I want to get cryptpad container working with nginx-proxy-manager
Networking flow : FQDN port 80/443 > nginx-proxy-manager frontend > redirecting to 192.168.0.201:54926 > cryptpad container > running on 127.0.0.1:3000
More details about the issue
cryptpad is started and working.
curl :
docker logs on the container :
But some issues are met from a template.js script : In my web browser I've a white page instead of cryptpad.
Browser console error :
The Nginx configuration inside nginx-proxy-manager is pretty much a copy and paste of the cryptpad configuration with my values & adapted to nginx-proxy-manager way of working : https://pastebin.com/6Bg18Hjf and the Nginx full VH is : https://pastebin.com/0xjdFzCB
I checked the 2 includes, include custom is empty, and include proxy contains :
I even tried to simplify the Nginx config(manually, without GUI), but I've still an issue with the **template.js*** access, but it shouldn't be the case, i can see the proper config ...
If anyone can help, it would be really appreciated, it seems like I miss something which is overwriting some parameters in the VH, and crash the template.js script from cryptpad, which should be normally accessible and working... :(
Any help appreciated, thank you !