Commit 5a84f622 authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack-monitor: user has to define by himself monitor_password

parent 7b3bd742
......@@ -72,7 +72,7 @@ filename = monitor.cgi
mode = 0744
context =
key json_file monitor-parameters:json-path
key password cgi-password:passwd
key password zero-parameters:cgi-password
raw python_executable ${buildout:executable}
key this_filename :filename
......@@ -84,7 +84,7 @@ filename = control.cgi
mode = 0744
context =
raw config_cfg $${buildout:directory}/knowledge0.cfg
key password cgi-password:passwd
key password zero-parameters:cgi-password
raw python_executable ${buildout:executable}
key this_filename :filename
......@@ -147,10 +147,14 @@ name = example.com
###########
# Deploy a webserver running cgi scripts for monitoring
###########
[cgi-password]
recipe = slapos.cookbook:generate.password
storage-path = $${directory:etc}/cgi-passwd
bytes = 8
[public]
recipe = slapos.cookbook:zeroknown.write
filename = knowledge0.cfg
cgi-password = passwordtochange
[zero-parameters]
recipe = slapos.cookbook:zeroknown.read
filename = $${public:filename}
# XXX could it be something lighter?
[cgi-httpd-configuration-file]
......@@ -210,5 +214,5 @@ wrapper-path = $${directory:bin}/cgi-httpd
[publish-connection-parameter]
recipe = slapos.cookbook:publish
monitor_url = http://[$${cgi-httpd-configuration-file:listening-ip}]:$${cgi-httpd-configuration-file:listening-port}
monitor_password = $${cgi-password:passwd}
\ No newline at end of file
monitor_url = https://[$${cgi-httpd-configuration-file:listening-ip}]:$${cgi-httpd-configuration-file:listening-port}/index.html
IMPORTANT_monitor_info = change the password as soon as possible ! Default is : passwordtochange
\ No newline at end of file
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