From 30a4eebe0a7c8c8e23a150f8230c339d374d7e3c Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 10 May 2022 14:22:14 +0200 Subject: [PATCH] Fix --- conf/ampache.cfg.php | 697 +++++++++++++++++++++++++++---------------- scripts/install | 16 +- 2 files changed, 443 insertions(+), 270 deletions(-) diff --git a/conf/ampache.cfg.php b/conf/ampache.cfg.php index 176d0ed..fb089d2 100644 --- a/conf/ampache.cfg.php +++ b/conf/ampache.cfg.php @@ -3,18 +3,31 @@ ; General Config # ;######################################################### -; This value is used to detect quickly -; if this config file is up to date -; this is compared against a value hard-coded -; into the init script -config_version = 40 +; This value is used to detect if this config file is up to date +; this is compared against a constant called CONFIG_VERSION +; that is located in src/Config/Init/InitializationHandlerConfig.php +config_version = 61 + +;######################################################### +; Auto Update # +;######################################################### ; Allow you to hard code a default git branch for Ampache ; If you set this value the inbuilt updater will use this branch for updates. ; POSSIBLE VALUES: master develop -; DEFAULT: "" +; DEFAULT: none ;github_force_branch = "develop" +; This value allows to override the composer binary path to distinguish between multiple composer versions +; Either a binary name in $PATH as well as a fully qualified path is possible +; DEFAULT: composer +;composer_binary_path = "composer" + +; We sometimes need to talk and will show a warning to admin users +; Enable this setting if you don't want to see warnings (When we enable them) +; DEFAULT: false +;hide_ampache_messages = "true" + ;######################################################### ; Path Vars # ;######################################################### @@ -22,22 +35,22 @@ config_version = 40 ; The public http host of your server. ; If not set, retrieved automatically from client request. ; This setting is required for WebSocket server -; DEFAULT: "" +; DEFAULT: none http_host = "__DOMAIN__" ; The public http port of your server. ; If not set, retrieved automatically from client request. -; DEFAULT: +; DEFAULT: none ;http_port = 80 -; The public path to your ampache install +; The public path to your Ampache install ; Do not put a trailing / on this path ; For example if your site is located at http://localhost ; than you do not need to enter anything for the web_path ; if it is located at http://localhost/music you need to ; set web_path to /music -; DEFAULT: "" -web_path = "__PATH__" +; DEFAULT: none +web_path = "__PATH__" ; The local http url of your server. ; This is used to access the server from within the @@ -47,10 +60,9 @@ web_path = "__PATH__" ; proxy, local_web_path would need to be changed ; to a localhost URL. ; If not set, retrieved automatically from server information. -; DEFAULT: "" +; DEFAULT: none ;local_web_path = "http://localhost/ampache" - ;######################################################### ; Database # ;######################################################### @@ -64,20 +76,36 @@ database_hostname = localhost ; DEFAULT: none ;database_port = 3306 -; Name of your ampache database -; DEFAULT: ampache +; Name of your Ampache database +; DEFAULT: none database_name = "__DB_NAME__" -; Username for your ampache database -; DEFAULT: "" +; Username for your Ampache database +; DEFAULT: none database_username = "__DB_USER__" -; Password for your ampache database, this can not be blank +; Password for your Ampache database, this can not be blank ; this is a 'forced' security precaution, the default value ; will not work (except if using socket authentication) -; DEFAULT: "" +; DEFAULT: none database_password = "__DB_PWD__" +; Set a default charset for your database +; Don't change this unless you understand how to BACKUP and RESTORE a database! +; +; DEFAULT: "utf8mb4" +;database_charset = "utf8mb4" + +; Set a default collation for your database +; Don't change this unless you understand how to BACKUP and RESTORE a database! +; +; There are a ton of options but you'll probably want one of these. +; "utf8_unicode_ci" = Regular unicode (3 bytes per character) +; "utf8mb4_unicode_ci" = 4 bytes per character +; "utf8mb4_unicode_520_ci" = Supports more characters and is based on UCA 5.2.0 weight keys +; http://www.unicode.org/Public/UCA/5.2.0/allkeys.txt +; DEFAULT: "utf8mb4_unicode_ci" +;database_collation = "utf8mb4_unicode_ci" ;######################################################### ; Session and Security # @@ -118,7 +146,7 @@ session_cookielife = 0 ; Is the cookie a "secure" cookie? This should only be set to 1 (true) if you are ; running a secure site (HTTPS). ; DEFAULT: 0 -session_cookiesecure = 1 +session_cookiesecure = 0 ; Auth Methods ; This defines which auth methods Auth will attempt to use and in which order. @@ -137,44 +165,50 @@ auth_methods = "ldap" ; Determines whether successful authentication against an external source ; will result in an update to the password stored in the database. ; A locally stored password is needed for API access. -; DEFAULT: false +; DEFAULT: "false" auth_password_save = "true" -; Logout redirection target +; Log out redirection target ; Defaults to our own login.php, but we can override it here if, for instance, ; we want to redirect to an SSO provider instead. -; logout_redirect = "http://sso.example.com/logout" +;logout_redirect = "http://sso.example.com/logout" ; Use Access List -; Toggle this on if you want ampache to pay attention to the access list +; Toggle this on if you want Ampache to pay attention to the access list ; and only allow streaming/downloading/api-rpc from known hosts api-rpc ; will not work without this on. ; NOTE: Default Behavior is DENY FROM ALL -; DEFAULT: true -access_control = "true" +; DEFAULT: "true" +access_control = "true" ; Require Session -; If this is set to true ampache will make sure that the URL passed when +; If this is set to true Ampache will make sure that the URL passed when ; attempting to retrieve a song contains a valid Session ID This prevents ; others from guessing URL's. This setting is ignored if you have use_auth ; disabled. -; DEFAULT: true +; DEFAULT: "true" require_session = "true" ; Require LocalNet Session -; If this is set to true then ampache will require that a valid session +; If this is set to true then Ampache will require that a valid session ; is passed even on hosts defined in the Local Network ACL. This setting ; has no effect if access_control is not enabled -; DEFAULT: true +; DEFAULT: "true" require_localnet_session = "true" ; Multiple Logins ; Added by Vlet 07/25/07 ; When this setting is enabled a user may only be logged in from a single ; IP address at any one time, this is to prevent sharing of accounts -; DEFAULT: false -;prevent_multiple_logins = "false" +; DEFAULT: "false" +;prevent_multiple_logins = "true" +; Allow Embedding Ampache in Frames +; Whether a browser should be allowed to render a page in a ,