Talk:ONLYOFFICE DocumentServer: Difference between revisions
→Suggested config does not work: new section |
respond to question |
||
| Line 40: | Line 40: | ||
I am open to suggestions :D [[User:GeorgiChalakov|GeorgiChalakov]] ([[User talk:GeorgiChalakov|talk]]) 21:05, 12 January 2026 (UTC) | I am open to suggestions :D [[User:GeorgiChalakov|GeorgiChalakov]] ([[User talk:GeorgiChalakov|talk]]) 21:05, 12 January 2026 (UTC) | ||
> 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 | |||
Latest revision as of 22:15, 12 January 2026
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)
> 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