Cryptpad: add example and test#661
Conversation
|
I worked on something similar yesterday to show something in the project overview. I think this will not work as expected without a reverse proxy, as the Nginx config currently ties a few routes together? My solution to this was services.nginx = {
virtualHosts."cryptpad.localhost" = {
enableACME = false;
forceSSL = false;
};
};so that we don't depend on ACME working. |
| name = "cryptpad"; | ||
| module = "${sources.inputs.nixpkgs}/nixos/modules/services/web-apps/cryptpad.nix"; | ||
| examples.basic = null; | ||
| examples.basic = { |
There was a problem hiding this comment.
| examples.basic = { | |
| examples.demo = { |
I had this idea to reserve the demo name for service demos, as they would be rendered differently in the overview than other examples. What do you think?
There was a problem hiding this comment.
Yup, that's a great idea! I like it.
The current config doesn't enable nginx for Cryptpad (even though it has an option to) and instead uses: Which seems to work. Is there something that wouldn't work without this? |
|
Yeah I know. I didn't check the functionality, but the Nginx config also contains the |
|
I can't seem to make this work with nginx as I keep getting CORS errors when I try to sign up. Have you encountered this @erictapen? |
|
Oh, no I never tested it this far, sorry. Ideally we would be able give the name a proper host name like cryptpad.local, because my suspicion would be that using |
erictapen
left a comment
There was a problem hiding this comment.
Let's merge for now and iterate on the Nginx problem later.
a18c6ac to
9ffded7
Compare
Tested inside an lxc container generated with nixos-generators:
Note: Instructions for reproducing this are available here.