allow gitlab configuration via environment variables
diaspora allows all configuration options to be set using environment variables
## You can set and/or override all these settings through environment variables
## with the following conversion rules:
## - Strip the top level namespace (configuration, production, etc.)
## - Build the path to the setting, for example environment.s3.enable
## - Replace the dots with underscores: environment_s3_enable
## - Convert to upper case: ENVIRONMENT_S3_ENABLE
## - Specify lists/arrays as comma-separated values
##
## - For example, on Heroku:
## heroku config:set SERVICES_FACEBOOK_APP_ID=yourappid SERVICES_FACEBOOK_SECRET=yourappsecret
https://github.com/diaspora/diaspora/blob/develop/config/diaspora.yml.example
It would be very helpful in automating gitlab installation by graphical wizards (like debconf in debian).
For diaspora package, the host name is set on installation, we ask the user to enter host name and set it as an environment variable.
export SERVERNAME=localhost
export ENVIRONMENT_URL=https://localhost