mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-13 16:16:11 +02:00
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
This commit is contained in:
@@ -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 <<EOF >/etc/apache2/sites-available/koillection.conf
|
||||
ServerName koillection
|
||||
DocumentRoot /opt/koillection/public
|
||||
SetEnv APP_RUNTIME "Symfony\\Component\\Runtime\\SymfonyRuntime"
|
||||
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=\$1
|
||||
<Directory /opt/koillection/public>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
|
||||
Reference in New Issue
Block a user