mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Set extra API settings during provisioning
This commit is contained in:
@@ -7,6 +7,7 @@ main:
|
||||
languages: []
|
||||
key: ''
|
||||
api_require_ssl: true
|
||||
api_disabled: true
|
||||
database:
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
|
@@ -6,6 +6,7 @@ main:
|
||||
maintenance: false
|
||||
key: ''
|
||||
api_require_ssl: true
|
||||
api_disabled: true
|
||||
database:
|
||||
host: 'sql-host'
|
||||
port: 3306
|
||||
|
@@ -41,3 +41,18 @@
|
||||
with_items: '{{ host_addresses }}'
|
||||
args:
|
||||
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