Jean28518 / libre-workspace

Cloud environment aiming to be an alternative to MS 365 or Google Workspace
https://www.libre-workspace.org
GNU General Public License v3.0
44 stars 4 forks source link

[FEATURE] Pretty URL for Nextcloud #136

Closed gelbphoenix closed 2 months ago

gelbphoenix commented 3 months ago

Could we standardly replace "cloud.{DOMAIN}/index.php" with "cloud{DOMAIN}/"?

Example: cloud.{DOMAIN}/index.php/apps/files/files would turn into cloud.{DOMAIN}/apps/files/files

It would only require two changes to the already existing setup of Nextcloud.

  1. Adding "htaccess.RewriteBase" to the Nextcloud config via command in setup_nextcloud.sh:

    sudo -u www-data php /var/www/nextcloud/occ config:system:set htaccess.RewriteBase --value="/"

    Then updating .htaccess (if needed):

    sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess
  2. Adding a value to the php-fpm.sock in the Caddyfile entry for cloud.{DOMAIN}:

    php_fastcgi unix//var/run/php/php-fpm.sock {
    env front_controller_active true
    }
gelbphoenix commented 3 months ago

Edit: Added the command to update the .htaccess file.

Jean28518 commented 3 months ago

Thank you very much for your feature request :) I personally am not a fan of those cosmetic changes but I will test it and if everything is right, new instances will get this feature :)

gelbphoenix commented 3 months ago

Also I noted today that the same redir for /index.php/settings/users must be implemented for /settings/users