Skip to content

Commit

Permalink
Allow to set listening port/address
Browse files Browse the repository at this point in the history
  • Loading branch information
psmiraglia committed Jul 4, 2017
1 parent e4ae1d1 commit 50aef0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cerebro/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ cerebro:
user: cerebro
group: cerebro
# config
port: 9000
address: 0.0.0.0
secret: ''
auth_ldap: {}
# enabled: False
Expand Down
5 changes: 4 additions & 1 deletion cerebro/templates/cerebro.service.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ Group={{ cerebro.group }}
{%- if cerebro.java_home %}
Environment=JAVA_HOME={{ cerebro.java_home }}
{%- endif %}
ExecStart={{ cerebro.home }}/bin/cerebro -Dconfig.file={{ cerebro.home }}/conf/application.conf
ExecStart={{ cerebro.home }}/bin/cerebro \
-Dconfig.file={{ cerebro.home }}/conf/application.conf \
-Dhttp.port={{ cerebro.port }} \
-Dhttp.address={{ cerebro.address }}
Restart=on-failure
SyslogIdentifier={{ cerebro.service }}
WorkingDirectory={{ cerebro.home }}
Expand Down

0 comments on commit 50aef0d

Please sign in to comment.