Jump to content

Talk:ONLYOFFICE DocumentServer

From Official NixOS Wiki
Revision as of 22:15, 12 January 2026 by Raboof (talk | contribs) (respond to question)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 12 January by GeorgiChalakov in topic Suggested config does not work

Suggested config does not work

I tried to set up onlyoffice in the shown way:

```

{ config, pkgs, ... }:

{

    services.onlyoffice = {

        enable = true;

        hostname = "localhost";

        securityNonceFile = "${pkgs.writeText "nixos-test-onlyoffice-nonce.conf" ''

            set $secure_link_secret "nixostest";

        ''}";

    };

    services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8007; } ];

}

```


But when I try to open http://my-ip-address:8007/ in my browser I get:

`The connection has timed out`


I found this great comment (https://github.com/NixOS/nixpkgs/issues/352443#issuecomment-2453542339) which suggested using the docker container instead and that did really solve my issue.

I would love to use pure nix to host onlyoffice but for now this is not possible with this config.

I am open to suggestions :D GeorgiChalakov (talk) 21:05, 12 January 2026 (UTC)Reply

> If you're listening on '127.0.0.1:8007', it is 'correct' that 'http://my-ip:8007' would not work: 127.0.0.1 listens only on the loopback address, not on the 'external' address. You might want to bind to 0.0.0.0? --Arnout