Onlyoffice-Documentserver: Difference between revisions

imported>Onny
Add configuration example for Caddy
Onny (talk | contribs)
Adapt alternative Caddy config
 
(3 intermediate revisions by 3 users not shown)
Line 23: Line 23:


=== Caddy web server ===
=== Caddy web server ===
{{warning|Onlyoffice is very particular about it headers and if there are some missing or different than what upstream expects, a seemingly completely unrelated portion of the software like font rendering can break. The module maintainer can only fully support nginx as this is the only webserver upstream supplies config files for in their docker image}}


Instead of using the default [[Nginx]] web server, an configuration for [[Caddy]] might look like this
Instead of using the default [[Nginx]] web server, an configuration for [[Caddy]] might look like this


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nginx.enable = lib.mkForce false;
users.users.nginx = {
  group = "nginx";
  isSystemUser = true;
};
users.groups.nginx = {};
services.caddy = {
services.caddy = {
   virtualHosts = {
   virtualHosts = {
Line 38: Line 47:
};
};
</nowiki>}}
</nowiki>}}
The reverse_proxy configuration directly forwards all requests to the Onlyoffice server, ignoring the default Nginx vhost.


[[Category:Server]]
[[Category:Server]]
[[Category:Applications]]
[[Category:Web Applications]]
[[Category:Web Applications]]