Files
2026-06-23 16:49:03 +02:00

38 lines
1.3 KiB
Python

description = 'setup for the execution daemon'
group = 'special'
import os
devices = dict(
# fixed list of users:
# first entry is the user name, second the hashed password, third the user
# level
# The user level are 'guest, 'user', and 'admin', ascending ordered in
# respect to the rights
# The entries for the password hashes are generated from randomized
# passwords and not reproduceable, please don't forget to create new ones:
# start python
# >>> import hashlib
# >>> hashlib.md5('password').hexdigest()
# or
# >>> hashlib.sha1('password').hexdigest()
Auth=device('nicos.services.daemon.auth.list.Authenticator',
# the hashing maybe 'md5' or 'sha1'
hashing='sha1',
passwd=[('guest', '',
'guest'),
('user', '21fb8406e5f81c24d4a5f5c7dd356e70a7288dc9',
'user'),
('admin', '76702e9ada292df094a875e5f72e9f778099d477',
'admin'),
],
),
Daemon=device('nicos.services.daemon.NicosDaemon',
server='0.0.0.0:%s' % os.environ['NICOS_DAEMON_PORT'],
authenticators=['Auth', ], # and/or 'UserDB'
loglevel='info',
),
)
startupcode = '''
'''