Nextcloud: Difference between revisions
imported>Pschwede →Tips and tricks: How to run nextcloud in a sub-directory |
imported>Pschwede →Run nextcloud in a sub-directory: I changed my previous wording a bit. |
||
Line 332: | Line 332: | ||
=== Run nextcloud in a sub-directory === | === Run nextcloud in a sub-directory === | ||
Say, you don't want to run nextcloud at <code>your.site/</code> but in a sub-directory <code>your.site/nextcloud/</code>. To do so, | Say, you don't want to run nextcloud at <code>your.site/</code> but in a sub-directory <code>your.site/nextcloud/</code>. To do so, we are going to add more configurations to nextcloud and to nginx to [[Nginx#TLS_reverse_proxy|make]] it a [https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ reverse-proxy]. | ||
First, define some overwritings. Nextcloud uses them to write URLs | First, define some overwritings. Nextcloud uses them to write out all URLs as if it runs in a sub-directory (which it is not.) | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
services.nextcloud = { | services.nextcloud = { |