From 68fe5d6b8bef4920758699aa6c1ac42dfceeb41a Mon Sep 17 00:00:00 2001 From: Crazy-Duck Date: Thu, 13 Aug 2026 09:53:37 +0200 Subject: [PATCH] feat: Update koillection-install.sh to support API usage (#16425) * feat: Update koillection-install.sh to support API usage Current config is missing the generation of the SSH keys necessary to create JWT tokens, as well as the Apache config necessary to allow through Authorization headers. See: - https://github.com/benjaminjonard/koillection/wiki/manual-installation - https://symfony.com/bundles/LexikJWTAuthenticationBundle/current/index.html?utm_source=chatgpt.com#important-note-for-apache-users * fix: missing backslash * feat: ensure subsequent executions don't replace keys --- install/koillection-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/koillection-install.sh b/install/koillection-install.sh index b7f3a60e9..297f7daf3 100644 --- a/install/koillection-install.sh +++ b/install/koillection-install.sh @@ -38,6 +38,7 @@ export APP_RUNTIME='Symfony\Component\Runtime\SymfonyRuntime' $STD composer install --no-dev -o --no-interaction --classmap-authoritative $STD php bin/console doctrine:migrations:migrate --no-interaction $STD php bin/console app:translations:dump +$STD php bin/console lexik:jwt:generate-keypair --skip-if-exists cd assets/ $STD yarn install $STD yarn build @@ -51,6 +52,7 @@ cat </etc/apache2/sites-available/koillection.conf ServerName koillection DocumentRoot /opt/koillection/public SetEnv APP_RUNTIME "Symfony\\Component\\Runtime\\SymfonyRuntime" + SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=\$1 Options Indexes FollowSymLinks AllowOverride All