First commit for package eole-syspass
This commit is contained in:
8
tmpl/syspass-apache.conf
Normal file
8
tmpl/syspass-apache.conf
Normal file
@ -0,0 +1,8 @@
|
||||
%set %%allowed_networks = ' '.join(['/'.join([%%str(ip), ip.syspass_allowed_netmask]) for ip in %%getVar('syspass_allowed_ip', [])])
|
||||
Alias /syspass /usr/share/sysPass
|
||||
<Directory "/usr/share/sysPass">
|
||||
DirectoryIndex index.php
|
||||
Order Deny,Allow
|
||||
Deny from All
|
||||
Allow from %%allowed_networks
|
||||
</Directory>
|
0
tmpl/syspass-bacula.conf
Normal file
0
tmpl/syspass-bacula.conf
Normal file
47
tmpl/syspass-config.php
Normal file
47
tmpl/syspass-config.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
// This file is generated automatically on installation process
|
||||
// Please, modify with caution, it could break the application
|
||||
$CONFIG = array (
|
||||
'account_count' => 12,
|
||||
'account_link' => 1,
|
||||
'files_allowed_exts' => 'BAK,CSV,JPG,PDF,PNG,TXT',
|
||||
'files_allowed_size' => 1280,
|
||||
'checkupdates' => 1,
|
||||
'dbhost' => '%%adresse_ip_mysql',
|
||||
'dbname' => 'syspass',
|
||||
'dbpass' => 'db_pass',
|
||||
'dbuser' => 'syspass',
|
||||
'debug' => 0,
|
||||
'demo_enabled' => 0,
|
||||
'files_enabled' => 1,
|
||||
'globalsearch' => 1,
|
||||
'installed' => 0,
|
||||
%if %%is_defined('activer_client_ldap') and %%activer_client_ldap != 'non'
|
||||
'ldap_base' => '%%ldap_base_dn',
|
||||
'ldap_bindpass' => '%%pwdreader("", %%ldap_reader_passfile)',
|
||||
'ldap_binduser' => '%%ldap_reader',
|
||||
'ldap_enabled' => 1,
|
||||
'ldap_group' => '',
|
||||
'ldap_server' => 'ldap://%%adresse_ip_ldap',
|
||||
%else
|
||||
'ldap_enabled' => 0,
|
||||
%end if
|
||||
'log_enabled' => 1,
|
||||
'mail_enabled' => 0,
|
||||
'mail_from' => '',
|
||||
'mail_pass' => '',
|
||||
'mail_port' => 25,
|
||||
'mail_requestsenabled' => 0,
|
||||
'mail_security' => 'TLS',
|
||||
'mail_server' => '',
|
||||
'mail_user' => '',
|
||||
'maintenance' => 0,
|
||||
'passwordsalt' => '87a77bb997f834d7859e726907233a',
|
||||
'session_timeout' => 600,
|
||||
'sitelang' => 'fr_FR',
|
||||
'version' => 1123,
|
||||
'wiki_enabled' => 0,
|
||||
'wiki_filter' => 'vm-',
|
||||
'wiki_pageurl' => '',
|
||||
'wiki_searchurl' => '',
|
||||
);
|
7
tmpl/syspass-create-database.sql
Normal file
7
tmpl/syspass-create-database.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE DATABASE syspass;
|
||||
GRANT ALL PRIVILEGES ON syspass.* to 'syspass'@'%%adresse_ip_web' identified by 'syspass';
|
||||
%if %%mode_conteneur_actif != "non"
|
||||
GRANT ALL PRIVILEGES ON syspass.* to 'syspass'@'%%adresse_ip_br0' identified by 'syspass';
|
||||
%end if
|
||||
FLUSH PRIVILEGES;
|
||||
|
30
tmpl/syspass.yml
Normal file
30
tmpl/syspass.yml
Normal file
@ -0,0 +1,30 @@
|
||||
%set %%db_mode = %%getVar('syspass_db_mode')
|
||||
%set %%client_hosts = list(set(["127.0.0.1", "localhost", %%adresse_ip_br0, %%adresse_ip_root, %%adresse_ip_mysql, %%adresse_ip_web]))
|
||||
%set %%extra_client_hosts = %%getVar('syspass_db_extra_allowed_hosts', [])
|
||||
%%client_hosts.extend(%%extra_client_hosts)
|
||||
%set %%client_hosts = [str(host) for host in %%client_hosts]
|
||||
dbtype: mysql
|
||||
dbname: syspass
|
||||
dbuser: syspass
|
||||
dbpass: "EeX7Aewe"
|
||||
client_hosts: %%client_hosts
|
||||
%if %%db_mode != 'default'
|
||||
%set %%db_host = %%getVar('syspass_db_host')
|
||||
%if %%db_host == 'localhost'
|
||||
%set %%db_host = '127.0.0.1'
|
||||
%end if
|
||||
dbhost: %%db_host
|
||||
%end if
|
||||
%if %%db_mode == 'externe'
|
||||
dbport: %%syspass_db_port
|
||||
dbroot: %%syspass_db_root
|
||||
dbrootpwd: %%syspass_db_root_passwd_path
|
||||
%end if
|
||||
createscript: "/usr/share/eole/db/syspass/gen/0_eole-syspass.sql"
|
||||
sqlscripts: ["/usr/share/eole/db/syspass/gen/dbstructure.sql"]
|
||||
updatescripts: []
|
||||
pwd_files:
|
||||
- {file: '%%container_path_web/var/www/html/syspass/app/config/config.php',
|
||||
pattern: " 'dbpass' => '",
|
||||
owner: 'www-data:www-data',
|
||||
mod: '540'}
|
Reference in New Issue
Block a user