Nextcloud: Difference between revisions

imported>SuperSandro2000
Replace NixOS container wby simply changing the nginx listening port
imported>Onny
Enhance listening port section
Line 29: Line 29:
== Tips and tricks ==
== Tips and tricks ==


=== Use alternative web server ===
=== Change default listening port ===


In case port 80 is already used by a different application or you're using a different web server than [[Nginx]], which is used by the Nextcloud module, you can change the listening port with the following option: <code>services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];</code>.
In case port 80 is already used by a different application or you're using a different web server than [[Nginx]], which is used by the Nextcloud module, you can change the listening port with the following option:  
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
</nowiki>}}


== Troubleshooting ==
== Troubleshooting ==