New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/cryptpad: allow config with attrset #89384
Conversation
b51da53
to
2a8b795
Compare
2a8b795
to
c9704c6
Compare
While reviewing this I got bit by the fact that
ignores the specified settings. I wonder if we should do the following:
Otherwise I tested it and it works. |
I noticed while reviewing that I had the following warning:
and yet I did provide 'httpSafeOrigin'. It looks like cryptpad should be updated. (but not in this PR, I just mention this for potential reviewers). |
The only problem with using null by default is that the [new] defaults have to pulled in manually each release (if there are any new options). |
We would have to do this as well for the default value of the |
I see |
This distinction does not strike me as obvious, but ok. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cryptpad-is-this-a-bug-or-must-i-configure-something/9100/2 |
How about making |
Functions as expected, but does require a significant nginx config get full function. See http://cgit.notk.org/asmadeus/nixos-config.git/tree/machines/jormungand |
@eadwu is there still interest in this? Or would want to use an RFC42-style approach? |
Well I can fix it up, but it probably doesn't matter since there doesn't seem to much interest anyway. |
@eadwu Oh, thanks for starting this! I am very much interested! |
@eadwu @tomberek I have made some minor adjustments, that could be integrated to this PR: |
I marked this as stale due to inactivity. → More info |
I am also interested, since this would allow more programmatic nginx configuration. |
For some reason that I can't find, Therefore, closing this PR. |
It is part of GH-180066 removing Node.js 12.
|
We could restore it if we want to, cryptpad is now using NodeJS 16... but NodeJS 16 is EOL in 3 months. Maybe we should revisit this as soon as they switched to NodeJS 18. |
I remember that the main painpoint in packaging And so far, no hints on their part in getting rid of it: cryptpad/cryptpad#295 (comment) . |
Compared generated
config.js
with the originalconfig.example.js
.Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)