Commit 6ac2cf46 authored by Nicolas Wavrant's avatar Nicolas Wavrant

stack-monitor: public access to files and scripts in cgi-bin/public

parent 2f430207
...@@ -25,6 +25,7 @@ Implementation : ...@@ -25,6 +25,7 @@ Implementation :
public public
zero-parameters zero-parameters
cgi-httpd-wrappers cgi-httpd-wrappers
public-symlink
* If you want to add a custom monitoring script, you can write it (in whatever language you wish) and save it in YOUR_INSTANCE_FOLDER/etc/monitor. * If you want to add a custom monitoring script, you can write it (in whatever language you wish) and save it in YOUR_INSTANCE_FOLDER/etc/monitor.
The only thing to know, is that if your script successfully passed, do not return or print nothing. If there is a problem, you can print the explanation on stdout or stderr The only thing to know, is that if your script successfully passed, do not return or print nothing. If there is a problem, you can print the explanation on stdout or stderr
......
...@@ -17,6 +17,7 @@ executable = $${directory:bin}/monitor.py ...@@ -17,6 +17,7 @@ executable = $${directory:bin}/monitor.py
cgi-bin = $${directory:cgi-bin} cgi-bin = $${directory:cgi-bin}
monitoring-cgi = $${directory:monitoring-cgi} monitoring-cgi = $${directory:monitoring-cgi}
knowledge0-cgi = $${directory:knowledge0-cgi} knowledge0-cgi = $${directory:knowledge0-cgi}
public-cgi = $${directory:public-cgi}
port = 9685 port = 9685
[directory] [directory]
...@@ -39,11 +40,17 @@ monitor = $${:etc}/monitor ...@@ -39,11 +40,17 @@ monitor = $${:etc}/monitor
monitor-result = $${monitor-parameters:monitor-dir} monitor-result = $${monitor-parameters:monitor-dir}
monitor-result-bool = $${monitor-parameters:result-dir} monitor-result-bool = $${monitor-parameters:result-dir}
promise = $${:etc}/promise promise = $${:etc}/promise
public-cgi = $${:cgi-bin}/public
run = $${:var}/run run = $${:var}/run
service = $${:etc}/service/ service = $${:etc}/service/
tmp = $${:home}/tmp tmp = $${:home}/tmp
www = $${:var}/www www = $${:var}/www
[public-symlink]
recipe = cns.recipe.symlink
symlink = $${monitor-parameters:public-cgi} = $${directory:www}/public
autocreate = true
[cron] [cron]
recipe = slapos.cookbook:cron recipe = slapos.cookbook:cron
dcrond-binary = ${dcron:location}/sbin/crond dcrond-binary = ${dcron:location}/sbin/crond
......
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