diff --git a/docs/advanced-setups.html b/docs/advanced-setups.html index 066f0c27..9d579648 100644 --- a/docs/advanced-setups.html +++ b/docs/advanced-setups.html @@ -128,7 +128,8 @@

Advanced Setups

  • S3 Object Storage Setup
  • Create and run Lychee container
  • Configure .ENV
  • -
  • Limitations to be considered
  • +
  • Setup Apache
  • +
  • Configure Lychee
  • @@ -331,10 +332,52 @@

    Configure .ENV

    To avoid latency when clicking Diagnostics, my suggestion is to disable BasicPermissionCheck. Otherwise, depending on the number of photos in your gallery, this task can take hours.

    -

    /var/lib/containers/storage/volumes/lychee-conf/_data/.env - SKIP_DIAGNOSTICS_CHECKS=BasicPermissionCheck

    -

    Limitations to be considered

    -

    As explained before, recursive tasks are penalised in Object Storage, so if you have an existing bucket and the container runs for the first time, it will take long time to review and set the permissions in your mount. Depending on the number of photos, it can take several hours.

    +

    ```/var/lib/containers/storage/volumes/lychee-conf/_data/.env + SKIP_DIAGNOSTICS_CHECKS=BasicPermissionCheck

    +
    
    +### Limitations to be considered
    +As explained before, recursive tasks are penalised in Object Storage, so if you have an existing bucket and the container runs for the first time, it will take long time to review and set the permissions in your mount. Depending on the number of photos, it can take several hours.
    +
    +## Hosting Lychee in a subpath with Apache
    +
    +To serve Lychee in a subpath, e.g. `https://my.url/photos/`, we can use Apaches's [Alias](https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias)-directive.
    +
    +In this example we assume the web root to be located at `/var/www/html`, the web user and group to be `www-data`, and install [from the master branch](installation.html#from-the-master-branch).
    +
    +Before getting started, make sure your system qualifies the [Server Requirements](installation.html#server-requirements). 
    +
    +### Setup Lychee
    +
    +Clone the repository to outside the web root, e.g. `/var/www/`:
    +
    +```bash
    +sudo git clone https://www.github.com/LycheeOrg/Lychee /var/www/
    +
    +

    Set the file ownership and permissions:

    +
    sudo chown -R www-data:www-data /var/www/Lychee
    +sudo chmod -R 2775 /var/www/Lychee
    +
    +

    Install composer in /var/www/Lychee as instructed in here. Then, from /var/www/Lychee, install the project dependencies:

    +
    sudo -u www-data php composer.phar install --no-dev
    +
    +

    Setup Apache

    +

    Link https://my.url/photos/ to /var/www/Lychee/public by adding the following to your Apache configuration for Aliases. In Apache 2.4 running on Debian, the correct configuration file is /etc/apache2/mods-available/alias.conf.

    +
    Alias /photos /var/www/Lychee/public
    +
    +<Directory /var/www/Lychee/public>
    +   Options FollowSymLinks
    +   AllowOverride All
    +   Require all granted
    +</Directory>
    +
    +

    Finally, restart Apache:

    +
    sudo service apache2 restart
    +
    +

    Configure Lychee

    +

    At this point, you should be able to go to https://my.url/photos/ and run the web installer. During the installation procedure, on top of adding the database credentials to match your setup, set your APP_URL to the served subdirectory:

    +
    APP_URL=https://my.url/photos/
    +
    +

    Done!

    {tip} Caught a mistake or want to contribute to the documentation? Edit this page on Github!

    diff --git a/docs/faq_installation.html b/docs/faq_installation.html index 91b5a5c2..e7741640 100644 --- a/docs/faq_installation.html +++ b/docs/faq_installation.html @@ -174,8 +174,7 @@

    }

    Can I host Lychee with a subpath with Apache? Like https://example.dev/lychee/

    -

    Yes, just create a Symbolic Link and allow your apache configuration to follow them. -At website.com root ln -s Lychee/public pics and you will get exactly what you want: website.com/pics

    +

    Yes, the process is described here.

    Do we really need writable app/?

    From #311

    Short answer: Lychee will work without a writable app/ folder.

    diff --git a/index.html b/index.html index f138f1f1..19d270c9 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,7 @@ "url": "https://LycheeOrg.github.io/", "image": "https://LycheeOrg.github.io/assets/images/og.jpg", "description": "Lychee is a free photo-management tool, which runs on your server or web-space. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely.", - "softwareVersion": "4.12.0", + "softwareVersion": "4.13.0", "applicationCategory": "Photo Management", "sameAs": [ "https://twitter.com/getlychee" @@ -61,7 +61,7 @@

    - Lychee 4.12.0 + Lychee 4.13.0

    diff --git a/support.html b/support.html index c55527e5..50b0b86b 100644 --- a/support.html +++ b/support.html @@ -36,7 +36,7 @@ "url": "https://LycheeOrg.github.io/", "image": "https://LycheeOrg.github.io/assets/images/og.jpg", "description": "Lychee is a free photo-management tool, which runs on your server or web-space. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely.", - "softwareVersion": "4.12.0", + "softwareVersion": "4.13.0", "applicationCategory": "Photo Management", "sameAs": [ "https://twitter.com/getlychee" @@ -61,7 +61,7 @@

    - Lychee 4.12.0 + Lychee 4.13.0

    diff --git a/update.json b/update.json index 36ffd830..45eab347 100644 --- a/update.json +++ b/update.json @@ -1,5 +1,5 @@ { "lychee": { - "version": 41200 + "version": 41300 } }