mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-07 22:36:45 +00: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 composer install --no-dev -o --no-interaction --classmap-authoritative
|
||||||
$STD php bin/console doctrine:migrations:migrate --no-interaction
|
$STD php bin/console doctrine:migrations:migrate --no-interaction
|
||||||
$STD php bin/console app:translations:dump
|
$STD php bin/console app:translations:dump
|
||||||
|
$STD php bin/console lexik:jwt:generate-keypair --skip-if-exists
|
||||||
cd assets/
|
cd assets/
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
@@ -51,6 +52,7 @@ cat <<EOF >/etc/apache2/sites-available/koillection.conf
|
|||||||
ServerName koillection
|
ServerName koillection
|
||||||
DocumentRoot /opt/koillection/public
|
DocumentRoot /opt/koillection/public
|
||||||
SetEnv APP_RUNTIME "Symfony\\Component\\Runtime\\SymfonyRuntime"
|
SetEnv APP_RUNTIME "Symfony\\Component\\Runtime\\SymfonyRuntime"
|
||||||
|
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=\$1
|
||||||
<Directory /opt/koillection/public>
|
<Directory /opt/koillection/public>
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
|
|||||||
Reference in New Issue
Block a user