cozy / cozy-controller

Cozy Module and Apps deployer
cozy.io
GNU Affero General Public License v3.0
5 stars 13 forks source link

Couchdb port #108

Open cphyc opened 8 years ago

cphyc commented 8 years ago

Is it possible to change the couchdb port used ? It seems hardcoded in many parts of cozycloud, making it quite hard to change.

poupotte commented 8 years ago

In theory, you can change couchdb port with transmit environment variable COUCH_PORT to data-system (https://github.com/cozy/cozy-data-system/blob/master/server/helpers/db_connect_helper.coffee#L18). To transmit this variable, you can use controller configuration file. Add

env: {
    { global : {COUCH_PORT: '<couch_port>'}}

or

env: {
    { 'data-system' : {COUCH_PORT: '<couch_port>'}}

in json sotred in /etc/cozy/controller.json and reload/restart your controller with supervisorctl reload cozy-controller and supervisorctl restart cozy-controller.