Skip to content
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

Onlyoffice - new boolean: allow LAN/localhost connections #347209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bobberb
Copy link

@bobberb bobberb commented Oct 8, 2024

Currently, Onlyoffice (which Nextcloud can use for the office-app suite) does not allow local connections.

Resolves #317225
per OnlyOffice Forums

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@SuperSandro2000

@bobberb
Copy link
Author

bobberb commented Oct 8, 2024

Seems nothing blocking this from release-24.05

nixos/modules/services/web-apps/onlyoffice.nix Outdated Show resolved Hide resolved
sed -i 's/"allowMetaIPAddress": false/"allowMetaIPAddress": true/' /run/onlyoffice/config/default.json
''}


# Allow members of the onlyoffice group to serve files under /var/lib/onlyoffice/documentserver/App_Data
chmod g+x /var/lib/onlyoffice/documentserver

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine we want to do the following:

  • add a freeform json type option
  • use pkgs.writeJSON on it
  • merge it into the default.json in line 263

Can you do that? Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think I have the knowledge to do a free-form JSON type but I did replace my commits with a new one that just uses the boolean and jq as you requested

@SuperSandro2000
Copy link
Member

Please follow the contributing guide when naming your commits.

@bobberb
Copy link
Author

bobberb commented Oct 8, 2024

@SuperSandro2000 will you accept this limited PR that does not introduce a free form json input (which I don't know how to do) but just adds the bool option into the existing jq structure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to configure Onlyoffice documentserver default.json file
3 participants