mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-31 11:52:15 +00:00
Add reload on config change
This commit is contained in:
parent
d05d649be4
commit
2bd4787a45
4 changed files with 14 additions and 4 deletions
|
@ -15,4 +15,8 @@ post_conf_commands:
|
|||
- onions
|
||||
- chown -R tor:tor $HOME
|
||||
|
||||
reload:
|
||||
files:
|
||||
- /etc/torrc
|
||||
|
||||
debug: false
|
||||
|
|
|
@ -98,7 +98,6 @@ class Setup(object):
|
|||
with open(os.path.join(serv_dir, 'hostname'), 'w') as f:
|
||||
f.write(self.onion_url_gen(conf['key']))
|
||||
|
||||
|
||||
def _set_conf(self):
|
||||
env = Environment(loader=FileSystemLoader('/'))
|
||||
temp = env.get_template(self.torrc_template)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue