From bdca22f29d79216a67dadc2e010ba0f00e3c3b60 Mon Sep 17 00:00:00 2001 From: ildyria Date: Tue, 30 Jan 2024 23:21:28 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20LycheeOr?= =?UTF-8?q?g/LycheeOrg.github.io@5251e30a561a1d831b844c344fbab7b3876f98f1?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq_general.html | 26 ++------------------------ docs/faq_troubleshooting.html | 8 +++++++- 2 files changed, 9 insertions(+), 25 deletions(-) diff --git a/docs/faq_general.html b/docs/faq_general.html index 58677724..950acd5e 100644 --- a/docs/faq_general.html +++ b/docs/faq_general.html @@ -126,7 +126,6 @@

General

  • How to add custom scripts?
  • How is the upload folder protected?
  • My login is timing out after two hours, how can this be changed?
  • -
  • How can I clear the Logs?
  • How can I see the correct client IP address when running Lychee behind Cloudflare?
  • Can I set up Lychee to watch a folder for new images and automatically add them to albums?
  • Special right-click menu doesn't appear for new users?
  • @@ -168,18 +167,7 @@

    How to reset username and password?

    Via SSH, use the command php artisan lychee:reset_admin.

    How to hide smart albums?

    -

    Add the following custom CSS to your user.css or via the settings menu:

    -
    [data-id="unsorted"] { display:none; }
    -[data-id="public"] { display:none; }
    -[data-id="starred"] { display:none; }
    -[data-id="recent"] { display:none; }
    -div#lychee_view_content > div.divider:first-child { display:none; }
    -div#lychee_view_content > div.divider:nth-child(6) {
    -    margin-top: 10px;
    -    border-top: 0;
    -    box-shadow: none;
    -}
    -
    +

    Go into your Settings then More, find SA_enabled in the "Smart Albums" section and set it to 0.

    How to disable the 'zoom' animation while browsing pictures?

    Add the following custom CSS to your user.css or via the settings menu:

    #imageview #image {
    @@ -267,7 +255,7 @@ 

    Change the URLs https://fonts.googleapis.com and https://fonts.gstatic.com to match your provider's URLs.

    How to add custom scripts?

    -

    If you want to add custom scripts, for example to add an analytics service, you can add the script code to the additional_footer_text setting. For example, adding <script>alert('Hello World!');</script> to it will display an alert dialog with Hello World! in it every time you load the page.

    +

    Edit the custom.js file in /path/to/lychee/public/dist/ or use the "Personalize JS" area in Settings.

    How is the upload folder protected?

    From #304

    Short version: It's not protected

    @@ -276,12 +264,6 @@

    @ildyria recently posted the following link on how a more effective protection could be implemented: https://bedigit.com/blog/laravel-5-how-to-access-image-uploaded-in-storage-within-view/. He didn't go down that route himself due to performance concerns but we agree that if somebody contributed a clean implementation as an option, we'd probably accept it.

    My login is timing out after two hours, how can this be changed?

    You can edit your .env and modify the SESSION_LIFETIME=120 part (in minutes).

    -

    How can I clear the Logs?

    -

    To remove the Notice and Warnings, simply click on the button at the top of the Log page. -However if the page is too heavy to load, you can either manually empty the Logs table or use artisan:

    -
    cd Lychee
    -php artisan lychee:logs clean
    -

    How can I see the correct client IP address when running Lychee behind Cloudflare?

    Please see https://github.com/monicahq/laravel-cloudflare. The Lychee file that needs changing can be found here.

    Can I set up Lychee to watch a folder for new images and automatically add them to albums?

    @@ -295,10 +277,6 @@

    No this is normal. This user does not have the ownership of that Album, so the right click is not available. You can see sharing as a read permission.

    The divider h1 shows the text "Admin" when logged in with an ordinary user. Shouln't this be "Albums"?

    - -

    Actually no, this is because the user does not have any albums (yet). The h1 divider is to show who is the owner of those albums. See below. 2020-02-19_3840x1080_12:29:19 And yes the right-click menu is available on the PhD Defenses part but not in the Admin parts. diff --git a/docs/faq_troubleshooting.html b/docs/faq_troubleshooting.html index 3fb15ec1..f976ec60 100644 --- a/docs/faq_troubleshooting.html +++ b/docs/faq_troubleshooting.html @@ -125,6 +125,8 @@

    Troubleshooting

  • I know my SQL database is setup correctly, but Lychee is showing SQLSTATE[HY000] [2002] No such file or directory and is not able to make changes to the database.
  • Why are there messages about git files in my logs? (e.g. .git/HEAD: failed to open stream: No such file or directory)
  • Import from server via symlink is failing.
  • +
  • Uploads are not working with Cloudfare / behind a reverse proxy.
  • +
  • I get an error SQLSTATE: Numeric value out of range: 1264 Out of range value for column 'legacy_id', what should I do?

  • Lychee is not working

    @@ -272,7 +274,11 @@

    Uploads are not working with Cloudfare / behind a reverse proxy.

    +

    Check that the value of TRUSTED_PROXIES is correctly set in your .env file.

    +

    I get an error SQLSTATE: Numeric value out of range: 1264 Out of range value for column 'legacy_id', what should I do?

    +

    Go into your Settings then More, find force_32bit_ids in the "config" section and set it to 1.

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