1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpipam_ynh.git synced 2024-09-03 19:56:39 +02:00
This commit is contained in:
ericgaspar 2021-07-06 10:51:41 +02:00
parent 44f9cb001b
commit 952228d280
4 changed files with 29 additions and 49 deletions

View file

@ -1,16 +1,8 @@
# See here for more informations
# https://github.com/YunoHost/package_check#syntax-check_process-file
# Move this file from check_process.default to check_process when you have filled it.
;; Test complet ;; Test complet
; Manifest ; Manifest
domain="domain.tld" (DOMAIN) domain="domain.tld"
path="/" (PATH) path="/"
is_public=1 (PUBLIC|public=1|private=0) is_public=1
# password="pass"
# nextclouddomain="domain.tld"
port="9980" (PORT)
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=0 setup_sub_dir=0
@ -21,22 +13,7 @@
upgrade=1 upgrade=1
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
incorrect_path=1
port_already_use=0
change_url=0 change_url=0
;;; Levels
Level 1=auto
Level 2=auto
Level 3=auto
# Level 4:
Level 4=1 (This app supports the Nextcloud LDAP auth)
# Level 5:
Level 5=auto
Level 6=auto
Level 7=auto
Level 8=0
Level 9=0
Level 10=0
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none

View file

@ -1,7 +1,7 @@
SOURCE_URL=https://github.com/phpipam/phpipam/archive/1.4.tar.gz SOURCE_URL=https://github.com/phpipam/phpipam/releases/download/v1.4.3/phpipam-v1.4.3.zip
SOURCE_SUM=57f3fe96f0147a74cb5c62da8b2f2d5c850d666e8db302ef1bcd2e860d85e73ba714fecadab79a390475567098a36362df4d7f3a694fcc3617248116f06c0696 SOURCE_SUM=f85b11399fc2fd3d3027e41bc7eecb89149454f3845fe1cda4c1e3722d16d00d
SOURCE_SUM_PRG=sha512sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_EXTRACT=true SOURCE_EXTRACT=true
SOURCE_FILENAME=phpipam.tar.gz SOURCE_FILENAME=phpipam.zip

View file

@ -4,21 +4,21 @@
* database connection details * database connection details
******************************/ ******************************/
$db['host'] = 'localhost'; $db['host'] = 'localhost';
$db['user'] = 'yunouser'; $db['user'] = '__DB_NAME__';
$db['pass'] = 'yunopass'; $db['pass'] = '__DB_PWD__';
$db['name'] = 'yunobase'; $db['name'] = '__DB_NAME__';
$db['port'] = 3306; $db['port'] = 3306;
/** /**
* Database webhost settings * Database webhost settings
* *
* Enable and change this setting if your MySQL database does not run on * Change this setting if your MySQL database does not run on localhost
* localhost and you want to use the automatic database installation method * and you want to use the automatic database installation method to
* to create a database user for you (which by default is created @localhost) * create a database user for you (which by default is created @localhost)
* *
* Set to the hostname or IP address of the webserver, or % to allow all * Set to the hostname or IP address of the webserver, or % to allow all
******************************/ ******************************/
// $db['webhost'] = 'localhost'; $db['webhost'] = '';
/** /**
@ -96,6 +96,13 @@ $api_allow_unsafe = false;
******************************/ ******************************/
$phpsessname = "phpipam"; $phpsessname = "phpipam";
/**
* Cookie SameSite settings ("None", "Lax"=Default, "Strict")
* - "Strict" increases security
* - "Lax" required for SAML2
* - "None" requires HTTPS
*/
$cookie_samesite = "Lax";
/** /**
* Session storage - files or database * Session storage - files or database
@ -176,3 +183,10 @@ $config['split_ip_custom_fields'] = false; // Show custom field
* If multiple php versions are present; overide selection with $php_cli_binary. * If multiple php versions are present; overide selection with $php_cli_binary.
*/ */
// $php_cli_binary = '/usr/bin/php7.1'; // $php_cli_binary = '/usr/bin/php7.1';
/**
* Path to mysqldump binary
*
* default: '/usr/bin/mysqldump'
*/
// $mysqldump_cli_binary = '/usr/bin/mysqldump';

View file

@ -49,17 +49,6 @@ ynh_script_progression --message="Storing installation settings..." --time --wei
ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=path --value=$path_url
#=================================================
# STANDARD MODIFICATIONS
#=================================================
# FIND AND OPEN A PORT
#=================================================
ynh_script_progression --message="Finding an available port..." --time --weight=1
# Find an available port
port=$(ynh_find_port --port=8095)
ynh_app_setting_set --app=$app --key=port --value=$port
#================================================= #=================================================
# INSTALL DEPENDENCIES # INSTALL DEPENDENCIES
#================================================= #=================================================