[enh] Use separate file so store master key.

This commit is contained in:
opi 2016-04-26 11:04:27 +02:00
parent 42c17b8027
commit dfb3d0f9df
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,5 +1,8 @@
*.swp
# Master Key
master.key
# Thin server files
log/*
tmp/*

View file

@ -8,7 +8,6 @@ subs_urls = ['http://dyndns.yunohost.org'] # 127.0.0.1 if you install subscribe
ns0 = 'ns0.yunohost.org' # Name servers
ns1 = 'ns1.yunohost.org'
rname = 'hostmaster@yunohost.org' # Responsible person (https://tools.ietf.org/html/rfc1035#section-3.3.13)
master_key= 'abcdef123456'
allowed_operations = {
'.' : ['A', 'AAAA', 'TXT', 'MX'],
@ -30,6 +29,7 @@ from urllib import urlopen
lines = ['// Generated by Dynette CRON']
for url in subs_urls:
master_key = open('./master.key').read().rstrip();
lines.extend([
'key dynette. {',
' algorithm hmac-md5;',