Mysql : stunnel configuration

parent a5534d1a
...@@ -210,7 +210,8 @@ class Recipe(BaseSlapRecipe): ...@@ -210,7 +210,8 @@ class Recipe(BaseSlapRecipe):
log = os.path.join(self.log_directory, 'stunnel.log') log = os.path.join(self.log_directory, 'stunnel.log')
pid_file = os.path.join(self.run_directory, 'stunnel.pid') pid_file = os.path.join(self.run_directory, 'stunnel.pid')
stunnel_conf = dict( stunnel_conf = dict(
ip=ip, ipv6=ip,
ipv4=self.getLocalIPv4Address,
port=port, port=port,
pid_file=pid_file, pid_file=pid_file,
log=log, log=log,
......
...@@ -10,5 +10,5 @@ cert = %(cert)s ...@@ -10,5 +10,5 @@ cert = %(cert)s
;key = /etc/ssl/certs/stunnel.pem ;key = /etc/ssl/certs/stunnel.pem
[mysqls] [mysqls]
accept = %(ip)s:%(port)s accept = %(ipv6)s:%(port)s
connect = %(external_port)s connect = %(ipv4)s:%(external_port)s
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