Change Ajaxplorer -> Pydio on the portal and create a second vhost echangeapi which also point on Pydio but with a basic auth interface (managed by LL::NG)

This commit is contained in:
Daniel Berteaud 2013-11-20 11:00:41 +01:00
parent 7e0b3d1843
commit eed9d58dfe
2 changed files with 28 additions and 4 deletions

View File

@ -94,6 +94,25 @@ elsif (($vhost->prop('DocumentRoot') || '/usr/share/pydio') eq '/usr/share/ajaxp
}
}
$vhost = $d->get("echangeapi.$domain");
if (!$vhost){
$d->new_record("echangeapi.$domain",{
type => 'domain',
Content => 'Primary',
Description => "Pydio API",
Nameservers => 'internet',
TemplatePath => 'WebAppVirtualHost',
DocumentRoot => '/usr/share/pydio',
Removable => 'yes',
Authentication => 'LemonLDAPBasic'
});
unless ( system("/sbin/e-smith/signal-event", "domain-create", "echangeapi.$domain") == 0 ){
die "Failed to create domain echangeapi.$domain\n";
}
}
$vhost = $d->get("wiki.$domain");
if (!$vhost){

View File

@ -10,17 +10,22 @@ $conf->{'locationRules'}->{"echange.$domain"} = {
'default' => 'accept'
} unless ($conf->{'locationRules'}->{"echange.$domain"});
$conf->{'vhostOptions'}->{"echange.$domain"} = {
'vhostAliases' => "echangeapi.$domain"
} unless ($conf->{'vhostOptions'}->{"echange.$domain"});
$conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'} = {
$conf->{'applicationList'}->{'010apps'}->{'pydio'} = {
'options' => {
'logo' => 'ajaxplorer.png',
'logo' => 'pydio.png',
'name' => 'Gestion des fichiers',
'description' => 'Gestionnaire de fichiers web Ajaxplorer',
'description' => 'Gestionnaire de fichiers web Pydio',
'uri' => "https://echange.$domain/",
'display' => 'auto'
},
'type' => 'application'
} unless ($conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'});
} unless ($conf->{'applicationList'}->{'010apps'}->{'pydio'});
delete $conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'};
$OUT = '';