mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Testing (#62)
This commit is contained in:
parent
4d113c94b9
commit
caa4159f23
11 changed files with 103 additions and 22 deletions
|
@ -26,7 +26,7 @@ BookStack is an opinionated wiki system that provides a pleasant and simple out
|
||||||
- Multi-Lingual
|
- Multi-Lingual
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 22.02.3~ynh1
|
**Shipped version:** 22.02.3~ynh2
|
||||||
|
|
||||||
**Demo:** https://demo.bookstackapp.com
|
**Demo:** https://demo.bookstackapp.com
|
||||||
|
|
||||||
|
@ -40,7 +40,8 @@ BookStack is an opinionated wiki system that provides a pleasant and simple out
|
||||||
|
|
||||||
BookStack uses LDAP authentication by default.
|
BookStack uses LDAP authentication by default.
|
||||||
|
|
||||||
You can switch to standard authentication in the webadmin -> bookstack -> config panel setting
|
You can switch to standard authentication in the webadmin -> bookstack -> config panel setting.
|
||||||
|
|
||||||
For the first time Login with standard authentication, use the default credentials `admin@admin.com` and `password`. You should change these details immediately after logging in for the first time.
|
For the first time Login with standard authentication, use the default credentials `admin@admin.com` and `password`. You should change these details immediately after logging in for the first time.
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
|
@ -22,7 +22,7 @@ BookStack is an opinionated wiki system that provides a pleasant and simple out
|
||||||
- Multi-Lingual
|
- Multi-Lingual
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 22.02.3~ynh1
|
**Version incluse :** 22.02.3~ynh2
|
||||||
|
|
||||||
**Démo :** https://demo.bookstackapp.com
|
**Démo :** https://demo.bookstackapp.com
|
||||||
|
|
||||||
|
@ -36,7 +36,8 @@ BookStack is an opinionated wiki system that provides a pleasant and simple out
|
||||||
|
|
||||||
BookStack utilise l'authentification LDAP par défaut.
|
BookStack utilise l'authentification LDAP par défaut.
|
||||||
|
|
||||||
Vous pouvez passer à l'authentification standard dans le webadmin -> Bookstack -> paramètre du panneau de configuration
|
Vous pouvez passer à l'authentification standard dans le webadmin -> Bookstack -> paramètre du panneau de configuration.
|
||||||
|
|
||||||
Pour la première connexion avec une authentification standard, utilisez les informations d'identification par défaut `admin@admin.com` et `password`. Vous devez modifier ces informations immédiatement après vous être connecté pour la première fois.
|
Pour la première connexion avec une authentification standard, utilisez les informations d'identification par défaut `admin@admin.com` et `password`. Vous devez modifier ces informations immédiatement après vous être connecté pour la première fois.
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
|
@ -14,17 +14,14 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
upgrade=1 from_commit=aaa9c9534b01a210989aceb4ad4d2b9c585be6df
|
|
||||||
upgrade=1 from_commit=12ee6097f4f48e6fb765afbe25dd10345e9c8adb
|
upgrade=1 from_commit=12ee6097f4f48e6fb765afbe25dd10345e9c8adb
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=1
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=aaa9c9534b01a210989aceb4ad4d2b9c585be6df
|
|
||||||
name=Testing (#35)
|
|
||||||
; commit=12ee6097f4f48e6fb765afbe25dd10345e9c8adb
|
; commit=12ee6097f4f48e6fb765afbe25dd10345e9c8adb
|
||||||
name=Testing (#38)
|
name=Testing (#38)
|
||||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
|
||||||
|
|
|
@ -81,6 +81,10 @@ SESSION_DRIVER=redis
|
||||||
# Example of using a single local Redis server
|
# Example of using a single local Redis server
|
||||||
REDIS_SERVERS=127.0.0.1:6379:__REDIS_DB__
|
REDIS_SERVERS=127.0.0.1:6379:__REDIS_DB__
|
||||||
|
|
||||||
|
# Queue driver to use
|
||||||
|
# Can be 'sync', 'database' or 'redis'
|
||||||
|
QUEUE_CONNECTION=redis
|
||||||
|
|
||||||
# Storage system to use
|
# Storage system to use
|
||||||
# Can be 'local', 'local_secure' or 's3'
|
# Can be 'local', 'local_secure' or 's3'
|
||||||
STORAGE_TYPE=local
|
STORAGE_TYPE=local
|
||||||
|
|
|
@ -42,6 +42,14 @@ APP_TIMEZONE=UTC
|
||||||
# overrides can be made. Defaults to disabled.
|
# overrides can be made. Defaults to disabled.
|
||||||
APP_THEME=false
|
APP_THEME=false
|
||||||
|
|
||||||
|
# Trusted proxies
|
||||||
|
# Used to indicate trust of systems that proxy to the application so
|
||||||
|
# certain header values (Such as "X-Forwarded-For") can be used from the
|
||||||
|
# incoming proxy request to provide origin detail.
|
||||||
|
# Set to an IP address, or multiple comma seperated IP addresses.
|
||||||
|
# Can alternatively be set to "*" to trust all proxy addresses.
|
||||||
|
APP_PROXIES=null
|
||||||
|
|
||||||
# Database details
|
# Database details
|
||||||
# Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.
|
# Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
|
@ -50,8 +58,15 @@ DB_DATABASE=database_database
|
||||||
DB_USERNAME=database_username
|
DB_USERNAME=database_username
|
||||||
DB_PASSWORD=database_user_password
|
DB_PASSWORD=database_user_password
|
||||||
|
|
||||||
|
# MySQL specific connection options
|
||||||
|
# Path to Certificate Authority (CA) certificate file for your MySQL instance.
|
||||||
|
# When this option is used host name identity verification will be performed
|
||||||
|
# which checks the hostname, used by the client, against names within the
|
||||||
|
# certificate itself (Common Name or Subject Alternative Name).
|
||||||
|
MYSQL_ATTR_SSL_CA="/path/to/ca.pem"
|
||||||
|
|
||||||
# Mail system to use
|
# Mail system to use
|
||||||
# Can be 'smtp', 'mail' or 'sendmail'
|
# Can be 'smtp' or 'sendmail'
|
||||||
MAIL_DRIVER=smtp
|
MAIL_DRIVER=smtp
|
||||||
|
|
||||||
# Mail sending options
|
# Mail sending options
|
||||||
|
@ -92,8 +107,7 @@ MEMCACHED_SERVERS=127.0.0.1:11211:100
|
||||||
REDIS_SERVERS=127.0.0.1:6379:0
|
REDIS_SERVERS=127.0.0.1:6379:0
|
||||||
|
|
||||||
# Queue driver to use
|
# Queue driver to use
|
||||||
# Queue not really currently used but may be configurable in the future.
|
# Can be 'sync', 'database' or 'redis'
|
||||||
# Would advise not to change this for now.
|
|
||||||
QUEUE_CONNECTION=sync
|
QUEUE_CONNECTION=sync
|
||||||
|
|
||||||
# Storage system to use
|
# Storage system to use
|
||||||
|
@ -126,7 +140,7 @@ STORAGE_S3_ENDPOINT=https://my-custom-s3-compatible.service.com:8001
|
||||||
STORAGE_URL=false
|
STORAGE_URL=false
|
||||||
|
|
||||||
# Authentication method to use
|
# Authentication method to use
|
||||||
# Can be 'standard', 'ldap' or 'saml2'
|
# Can be 'standard', 'ldap', 'saml2' or 'oidc'
|
||||||
AUTH_METHOD=standard
|
AUTH_METHOD=standard
|
||||||
|
|
||||||
# Social authentication configuration
|
# Social authentication configuration
|
||||||
|
@ -195,10 +209,12 @@ LDAP_DN=false
|
||||||
LDAP_PASS=false
|
LDAP_PASS=false
|
||||||
LDAP_USER_FILTER=false
|
LDAP_USER_FILTER=false
|
||||||
LDAP_VERSION=false
|
LDAP_VERSION=false
|
||||||
|
LDAP_START_TLS=false
|
||||||
LDAP_TLS_INSECURE=false
|
LDAP_TLS_INSECURE=false
|
||||||
LDAP_ID_ATTRIBUTE=uid
|
LDAP_ID_ATTRIBUTE=uid
|
||||||
LDAP_EMAIL_ATTRIBUTE=mail
|
LDAP_EMAIL_ATTRIBUTE=mail
|
||||||
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
|
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
|
||||||
|
LDAP_THUMBNAIL_ATTRIBUTE=null
|
||||||
LDAP_FOLLOW_REFERRALS=true
|
LDAP_FOLLOW_REFERRALS=true
|
||||||
LDAP_DUMP_USER_DETAILS=false
|
LDAP_DUMP_USER_DETAILS=false
|
||||||
|
|
||||||
|
@ -221,6 +237,9 @@ SAML2_IDP_x509=null
|
||||||
SAML2_ONELOGIN_OVERRIDES=null
|
SAML2_ONELOGIN_OVERRIDES=null
|
||||||
SAML2_DUMP_USER_DETAILS=false
|
SAML2_DUMP_USER_DETAILS=false
|
||||||
SAML2_AUTOLOAD_METADATA=false
|
SAML2_AUTOLOAD_METADATA=false
|
||||||
|
SAML2_IDP_AUTHNCONTEXT=true
|
||||||
|
SAML2_SP_x509=null
|
||||||
|
SAML2_SP_x509_KEY=null
|
||||||
|
|
||||||
# SAML group sync configuration
|
# SAML group sync configuration
|
||||||
# Refer to https://www.bookstackapp.com/docs/admin/saml2-auth/
|
# Refer to https://www.bookstackapp.com/docs/admin/saml2-auth/
|
||||||
|
@ -228,6 +247,19 @@ SAML2_USER_TO_GROUPS=false
|
||||||
SAML2_GROUP_ATTRIBUTE=group
|
SAML2_GROUP_ATTRIBUTE=group
|
||||||
SAML2_REMOVE_FROM_GROUPS=false
|
SAML2_REMOVE_FROM_GROUPS=false
|
||||||
|
|
||||||
|
# OpenID Connect authentication configuration
|
||||||
|
# Refer to https://www.bookstackapp.com/docs/admin/oidc-auth/
|
||||||
|
OIDC_NAME=SSO
|
||||||
|
OIDC_DISPLAY_NAME_CLAIMS=name
|
||||||
|
OIDC_CLIENT_ID=null
|
||||||
|
OIDC_CLIENT_SECRET=null
|
||||||
|
OIDC_ISSUER=null
|
||||||
|
OIDC_ISSUER_DISCOVER=false
|
||||||
|
OIDC_PUBLIC_KEY=null
|
||||||
|
OIDC_AUTH_ENDPOINT=null
|
||||||
|
OIDC_TOKEN_ENDPOINT=null
|
||||||
|
OIDC_DUMP_USER_DETAILS=false
|
||||||
|
|
||||||
# Disable default third-party services such as Gravatar and Draw.IO
|
# Disable default third-party services such as Gravatar and Draw.IO
|
||||||
# Service-specific options will override this option
|
# Service-specific options will override this option
|
||||||
DISABLE_EXTERNAL_SERVICES=false
|
DISABLE_EXTERNAL_SERVICES=false
|
||||||
|
@ -245,10 +277,15 @@ AVATAR_URL=
|
||||||
DRAWIO=true
|
DRAWIO=true
|
||||||
|
|
||||||
# Default item listing view
|
# Default item listing view
|
||||||
# Used for public visitors and user's without a preference
|
# Used for public visitors and user's without a preference.
|
||||||
# Can be 'list' or 'grid'
|
# Can be 'list' or 'grid'.
|
||||||
APP_VIEWS_BOOKS=list
|
APP_VIEWS_BOOKS=list
|
||||||
APP_VIEWS_BOOKSHELVES=grid
|
APP_VIEWS_BOOKSHELVES=grid
|
||||||
|
APP_VIEWS_BOOKSHELF=grid
|
||||||
|
|
||||||
|
# Use dark mode by default
|
||||||
|
# Will be overriden by any user/session preference.
|
||||||
|
APP_DEFAULT_DARK_MODE=false
|
||||||
|
|
||||||
# Page revision limit
|
# Page revision limit
|
||||||
# Number of page revisions to keep in the system before deleting old revisions.
|
# Number of page revisions to keep in the system before deleting old revisions.
|
||||||
|
@ -263,6 +300,15 @@ REVISION_LIMIT=50
|
||||||
# Set to -1 for unlimited recycle bin lifetime.
|
# Set to -1 for unlimited recycle bin lifetime.
|
||||||
RECYCLE_BIN_LIFETIME=30
|
RECYCLE_BIN_LIFETIME=30
|
||||||
|
|
||||||
|
# File Upload Limit
|
||||||
|
# Maximum file size, in megabytes, that can be uploaded to the system.
|
||||||
|
FILE_UPLOAD_SIZE_LIMIT=50
|
||||||
|
|
||||||
|
# Export Page Size
|
||||||
|
# Primarily used to determine page size of PDF exports.
|
||||||
|
# Can be 'a4' or 'letter'.
|
||||||
|
EXPORT_PAGE_SIZE=a4
|
||||||
|
|
||||||
# Allow <script> tags in page content
|
# Allow <script> tags in page content
|
||||||
# Note, if set to 'true' the page editor may still escape scripts.
|
# Note, if set to 'true' the page editor may still escape scripts.
|
||||||
ALLOW_CONTENT_SCRIPTS=false
|
ALLOW_CONTENT_SCRIPTS=false
|
||||||
|
@ -273,12 +319,25 @@ ALLOW_CONTENT_SCRIPTS=false
|
||||||
# Contents of the robots.txt file can be overridden, making this option obsolete.
|
# Contents of the robots.txt file can be overridden, making this option obsolete.
|
||||||
ALLOW_ROBOTS=null
|
ALLOW_ROBOTS=null
|
||||||
|
|
||||||
|
# Allow server-side fetches to be performed to potentially unknown
|
||||||
|
# and user-provided locations. Primarily used in exports when loading
|
||||||
|
# in externally referenced assets.
|
||||||
|
# Can be 'true' or 'false'.
|
||||||
|
ALLOW_UNTRUSTED_SERVER_FETCHING=false
|
||||||
|
|
||||||
# A list of hosts that BookStack can be iframed within.
|
# A list of hosts that BookStack can be iframed within.
|
||||||
# Space separated if multiple. BookStack host domain is auto-inferred.
|
# Space separated if multiple. BookStack host domain is auto-inferred.
|
||||||
# For Example: ALLOWED_IFRAME_HOSTS="https://example.com https://a.example.com"
|
# For Example: ALLOWED_IFRAME_HOSTS="https://example.com https://a.example.com"
|
||||||
# Setting this option will also auto-adjust cookies to be SameSite=None.
|
# Setting this option will also auto-adjust cookies to be SameSite=None.
|
||||||
ALLOWED_IFRAME_HOSTS=null
|
ALLOWED_IFRAME_HOSTS=null
|
||||||
|
|
||||||
|
# A list of sources/hostnames that can be loaded within iframes within BookStack.
|
||||||
|
# Space separated if multiple. BookStack host domain is auto-inferred.
|
||||||
|
# Can be set to a lone "*" to allow all sources for iframe content (Not advised).
|
||||||
|
# Defaults to a set of common services.
|
||||||
|
# Current host and source for the "DRAWIO" setting will be auto-appended to the sources configured.
|
||||||
|
ALLOWED_IFRAME_SOURCES="https://*.draw.io https://*.youtube.com https://*.youtube-nocookie.com https://*.vimeo.com"
|
||||||
|
|
||||||
# The default and maximum item-counts for listing API requests.
|
# The default and maximum item-counts for listing API requests.
|
||||||
API_DEFAULT_ITEM_COUNT=100
|
API_DEFAULT_ITEM_COUNT=100
|
||||||
API_MAX_ITEM_COUNT=500
|
API_MAX_ITEM_COUNT=500
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
BookStack uses LDAP authentication by default.
|
BookStack uses LDAP authentication by default.
|
||||||
|
|
||||||
You can switch to standard authentication in the webadmin -> bookstack -> config panel setting
|
You can switch to standard authentication in the webadmin -> bookstack -> config panel setting.
|
||||||
|
|
||||||
For the first time Login with standard authentication, use the default credentials `admin@admin.com` and `password`. You should change these details immediately after logging in for the first time.
|
For the first time Login with standard authentication, use the default credentials `admin@admin.com` and `password`. You should change these details immediately after logging in for the first time.
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
|
|
||||||
BookStack utilise l'authentification LDAP par défaut.
|
BookStack utilise l'authentification LDAP par défaut.
|
||||||
|
|
||||||
Vous pouvez passer à l'authentification standard dans le webadmin -> Bookstack -> paramètre du panneau de configuration
|
Vous pouvez passer à l'authentification standard dans le webadmin -> Bookstack -> paramètre du panneau de configuration.
|
||||||
|
|
||||||
Pour la première connexion avec une authentification standard, utilisez les informations d'identification par défaut `admin@admin.com` et `password`. Vous devez modifier ces informations immédiatement après vous être connecté pour la première fois.
|
Pour la première connexion avec une authentification standard, utilisez les informations d'identification par défaut `admin@admin.com` et `password`. Vous devez modifier ces informations immédiatement après vous être connecté pour la première fois.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Platform to create documentation/wiki content",
|
"en": "Platform to create documentation/wiki content",
|
||||||
"fr": "Plateforme pour créer du contenu de documentation/wiki"
|
"fr": "Plateforme pour créer du contenu de documentation/wiki"
|
||||||
},
|
},
|
||||||
"version": "22.02.3~ynh1",
|
"version": "22.02.3~ynh2",
|
||||||
"url": "https://www.bookstackapp.com/",
|
"url": "https://www.bookstackapp.com/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -24,14 +24,15 @@
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.3.0"
|
"yunohost": ">= 4.3.0"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php8.0-fpm",
|
"php8.0-fpm",
|
||||||
"mysql"
|
"mysql"
|
||||||
],
|
],
|
||||||
"arguments": {
|
"arguments": {
|
||||||
"install": [{
|
"install": [
|
||||||
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain"
|
"type": "domain"
|
||||||
},
|
},
|
||||||
|
@ -52,7 +53,20 @@
|
||||||
"en": "Choose the application language",
|
"en": "Choose the application language",
|
||||||
"fr": "Choisissez la langue de l'application"
|
"fr": "Choisissez la langue de l'application"
|
||||||
},
|
},
|
||||||
"choices": ["de", "en", "es_ES", "fa", "fr", "it", "lt", "nl", "pl", "pt_PT", "uk", "zh_CN"],
|
"choices": [
|
||||||
|
"de",
|
||||||
|
"en",
|
||||||
|
"es_ES",
|
||||||
|
"fa",
|
||||||
|
"fr",
|
||||||
|
"it",
|
||||||
|
"lt",
|
||||||
|
"nl",
|
||||||
|
"pl",
|
||||||
|
"pt_PT",
|
||||||
|
"uk",
|
||||||
|
"zh_CN"
|
||||||
|
],
|
||||||
"default": "en"
|
"default": "en"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -107,6 +107,7 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --usage=low --footprint=low
|
ynh_add_fpm_config --usage=low --footprint=low
|
||||||
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL LYCHEE WITH COMPOSER
|
# INSTALL LYCHEE WITH COMPOSER
|
||||||
|
@ -146,7 +147,7 @@ chown $app:$app $final_path/.env
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring permissions..." --weight=50
|
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||||
|
|
||||||
# Make app public if necessary
|
# Make app public if necessary
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
|
|
|
@ -44,6 +44,7 @@ test ! -d $final_path || ynh_die --message="There is already a directory: $final
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE NGINX CONFIGURATION
|
# RESTORE THE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,7 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint
|
||||||
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL LYCHEE WITH COMPOSER
|
# INSTALL LYCHEE WITH COMPOSER
|
||||||
|
|
Loading…
Reference in a new issue