Skip to content
Snippets Groups Projects
Select Git revision
  • 4877d416e28434ef3990f0d266d44df3adb4d2b1
  • master default protected
  • 133-fail2ban-page
  • reorganisation
  • 16-maintenace-service
  • 11-fail2ban
  • 6-monit-update
  • 7-dolibarr-fail2ban
  • 6-surveillance-interne-des-serveur
  • test-glpi
  • 2-migrate-to-phpfpm
  • jessie
  • github
13 results

Nextcloud.env

Blame
  • David Beniamine's avatar
    David Beniamine authored
    9bac8d15
    History
    Nextcloud.env 1.28 KiB
    # Variables to configure the config.php file.
    
    # wget configuration
    NEXTCLOUD_DIRECTORY_SOURCES=/root/NextcloudSources/
    NEXTCLOUD_WGET_INPUT=nextcloudSource.txt
    NEXTCLOUD_VERSION="latest"
    NEXTCLOUD_PACKAGE="$NEXTCLOUD_VERSION.tar.bz2"
    
    # extract configuration
    NEXTCLOUD_INSTALL_DIR="/var/www/nextcloud/"
    NEXTCLOUD_CONFIG_trusted_domains="$(
    echo -n "'trusted_domains' =>"
    echo -n "array("
    echo -n "0 => 'localhost',"
    echo -n "1 => 'nextcloud.$DOMAIN',"
    echo -n "),"
    echo -n "'updater.release.channel' => 'production',"
    echo -n "'default_language' => 'fr',")"
    
    # Installer configuration nextcloud's OCC tools
    NEXTCLOUD_DATABASE="mysql"
    NEXTCLOUD_DATABASE_HOST="localhost"
    #NEXTCLOUD_DATABASE_PORT=""
    NEXTCLOUD_DATABASE_USER="nextcloud"
    #NEXTCLOUD_DATABASE_PASS=""
    NEXTCLOUD_DATABASE_TABLE_PREFIX="oc_"
    NEXTCLOUD_ADMIN_USER="admin"
    #NEXTCLOUD_ADMIN_PASS= # automatically generated by the installer or
    # specified if any required
    NEXTCLOUD_DATA_DIR="/home/nextcloud"
    
    # Apache configuration
    NEXTCLOUD_CONFIG_ServerAdmin=${NEXTCLOUD_CONFIG_ServerAdmin:-${SERVER_ADMIN}}
    NEXTCLOUD_CONFIG_ServerName=${NEXTCLOUD_CONFIG_ServerName:-nextcloud.${DOMAIN}}
    
    if [ "${WEB_SERVER}" == "apache2" ]
    then
        export WEB_SERVER_PACKAGES="apache2 libapache2-mod-php"
    else
        export WEB_SERVER_PACKAGES="nginx-extras php-fpm"
    fi