{

$conf->{'exportedHeaders'}->{"echange.$domain"} = {
    'Auth-User' => '$uid'
} unless ($conf->{'exportedHeaders'}->{"echange.$domain"});


# TODO: $localAcccess en fonction de access == (public|private)
$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'}->{'pydio'} = {
    'options' => {
        'logo' => 'pydio.png',
        'name' => 'Gestion des fichiers',
        'description' => 'Gestionnaire de fichiers web Pydio',
        'uri' => "https://echange.$domain/",
        'display' => 'auto'
    },
    'type' => 'application'
} unless ($conf->{'applicationList'}->{'010apps'}->{'pydio'});

delete $conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'};

$OUT = '';

}
