Skip to content
Snippets Groups Projects
Select Git revision
  • b7fceca50de7e93afffc67919ce055e258ce0842
  • master default protected
  • intros
  • live_sources
  • bootstrap4
  • modules
6 results

config.py.example

Blame
  • Forked from Video AG Infrastruktur / website
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    local.protected.php.j2 1.12 KiB
    <?php
    
    {% if item.ad %}
    $conf['authtype'] = 'authad';
    $conf['plugin']['authad']['account_suffix'] = '@{{ item.ad_domain }}';
    $conf['plugin']['authad']['base_dn'] = '{{ item.ad_basedn }}';
    $conf['plugin']['authad']['domain_controllers'] = '{{ item.ad_controller }}';
    $conf['plugin']['authad']['admin_username'] = '{{ item.ad_user }}';
    $conf['plugin']['authad']['admin_password'] = '{{ item.ad_password }}';
    $conf['plugin']['authad']['use_tls'] = 1;
    $conf['plugin']['authad']['recursive_groups'] = '1';
    $conf['plugin']['authad']['update_mail'] = 0;
    $conf['disableactions'] = 'register,profile_delete,resendpwd';
    $conf['superuser'] = '{{ item.ad_superuser }}';
    $conf['manager'] = '{{ item.ad_manager }}';
    $conf['passcrypt'] = 'ssha';
    {% else %}
    $conf['passcrypt'] = 'bcrypt';
    {% endif %}
    
    $conf['mailfrom'] = '{{ item.mail }}';
    $conf['htmlmail'] = 0;
    $conf['userewrite'] = '1';
    $conf['gzip_output'] = 1;
    $conf['xsendfile'] = 0;
    $conf['updatecheck'] = 0;
    $conf['useacl'] = 1;
    $conf['phpok'] = 0;
    {% if item.mail_host is defined %}
    $conf['plugin']['smtp']['smtp_host'] = '{{item.mail_host}}';
    $conf['plugin']['smtp']['smtp_ssl'] = 'tls';
    {% endif %}