mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Merge pull request #1957 from alchemy-fr/fix/provisioned-api-settings
API settings provisioning
This commit is contained in:
@@ -7,6 +7,7 @@ main:
|
|||||||
languages: []
|
languages: []
|
||||||
key: ''
|
key: ''
|
||||||
api_require_ssl: true
|
api_require_ssl: true
|
||||||
|
api_disabled: true
|
||||||
database:
|
database:
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 3306
|
port: 3306
|
||||||
|
@@ -83,10 +83,10 @@ class ConfigurationEditor extends Command
|
|||||||
$configurationRoot = $configurationStore->getConfig();
|
$configurationRoot = $configurationStore->getConfig();
|
||||||
$configurationCurrent = & $configurationRoot;
|
$configurationCurrent = & $configurationRoot;
|
||||||
|
|
||||||
$output->writeln('<info>Writing configuration entry</info> ' . $parameter);
|
$output->writeln('<info>Writing value to configuration entry</info> ' . $parameter);
|
||||||
|
|
||||||
foreach ($parameterNodes as $paramName) {
|
foreach ($parameterNodes as $paramName) {
|
||||||
if (! isset($mergeConfiguration[$paramName])) {
|
if (! isset($configurationCurrent[$paramName])) {
|
||||||
$configurationCurrent[$paramName] = array();
|
$configurationCurrent[$paramName] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@ main:
|
|||||||
maintenance: false
|
maintenance: false
|
||||||
key: ''
|
key: ''
|
||||||
api_require_ssl: true
|
api_require_ssl: true
|
||||||
|
api_disabled: true
|
||||||
database:
|
database:
|
||||||
host: 'sql-host'
|
host: 'sql-host'
|
||||||
port: 3306
|
port: 3306
|
||||||
|
@@ -41,3 +41,18 @@
|
|||||||
with_items: '{{ host_addresses }}'
|
with_items: '{{ host_addresses }}'
|
||||||
args:
|
args:
|
||||||
chdir: /vagrant/
|
chdir: /vagrant/
|
||||||
|
|
||||||
|
- name: Disable API SSL requirement
|
||||||
|
shell: bin/setup system:config set main.api_require_ssl false
|
||||||
|
args:
|
||||||
|
chdir: /vagrant/
|
||||||
|
|
||||||
|
- name: Enable API routes
|
||||||
|
shell: bin/setup system:config set main.api_disabled false
|
||||||
|
args:
|
||||||
|
chdir: /vagrant/
|
||||||
|
|
||||||
|
- name: Create ElasticSearch indexes
|
||||||
|
shell: bin/console s:i:c
|
||||||
|
args:
|
||||||
|
chdir: /vagrant/
|
||||||
|
Reference in New Issue
Block a user