Commit a65d1925 authored by paz's avatar paz
Browse files

Bind to 'localhost' by default, change option-name to "host"

parent 63d087cb
......@@ -17,7 +17,7 @@ class Schleuderd < Sinatra::Base
configure do
set :server, :thin
set :port, Schleuder::Conf.api['port'] || 4443
set :bind, Schleuder::Conf.api['bind'] || '0.0.0.0'
set :bind, Schleuder::Conf.api['host'] || 'localhost'
if settings.development?
set :logging, Logger::DEBUG
else
......
......@@ -26,8 +26,8 @@ database:
# Note: The API-daemon will bind only to localhost if no TLS-cert+keys are available.
api:
host: localhost
port: 4443
bind: 0.0.0.0
tls_cert_file: /etc/schleuder/schleuder-certificate.pem
tls_key_file: /etc/schleuder/schleuder-private-key.pem
# List of api_keys to allow access to the API.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment