mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
[enh] Use separate file so store master key.
This commit is contained in:
parent
42c17b8027
commit
dfb3d0f9df
2 changed files with 4 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,5 +1,8 @@
|
|||
*.swp
|
||||
|
||||
# Master Key
|
||||
master.key
|
||||
|
||||
# Thin server files
|
||||
log/*
|
||||
tmp/*
|
|
@ -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;',
|
||||
|
|
Loading…
Add table
Reference in a new issue