From bbdcefa2969d697115e324fb3947bd8209660010 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 3 Aug 2016 14:22:38 +1000 Subject: [PATCH] Add MySQl & Other Configuration Options to Pholio This changes adds the following configuration options to Phabricator / Pholio: * Configures MySQL options * Timezone set to UTC * Disables the requirement for email verification * Disables the requirement to have an administrator approve new accounts. * Sets the default viewing policy to "public". * Enables requiring HTTPS for all connections. Change-Id: Iab189f099efaa5354d944a15cf15776f2b39788a Implements: Spec Pholio --- templates/local.json.erb | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/templates/local.json.erb b/templates/local.json.erb index 2420a70..cd53d62 100644 --- a/templates/local.json.erb +++ b/templates/local.json.erb @@ -1,12 +1,15 @@ { + "mysql.pass": "<%= @mysql_user_password %>", + "mysql.user": "<%= @mysql_user %>", + "mysql.host": "<%= @mysql_host %>", + "mysql.port": "<%= @mysql_port %>", "config.ignore-issues": { - "daemons.need-restarting": true, "security.security.alternate-file-domain": true }, "pygments.enabled": true, - "repository.default-local-path": "/var/lib/git", + "repository.default-local-path": "/opt/phabricator/repo", "phabricator.serious-business": true, - "phabricator.base-uri": "https://<%= @vhost_name %>", + "phabricator.base-uri": "https://<%= @httpd_vhost %>/", "phabricator.uninstalled-applications": { "PhabricatorDifferentialApplication": true, "PhabricatorPhrictionApplication": true, @@ -46,5 +49,9 @@ "closed": true } }, - "phabricator.timezone": "UTC" + "phabricator.timezone": "UTC", + "auth.require-email-verification": false, + "auth.require-approval": false, + "policy.allow-public": true, + "security.require-https": true }