Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
0c9629fd
Commit
0c9629fd
authored
Aug 13, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: Autogenerate monitor and disable cgi (not required for now)
parent
92abcff9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
software/monitor/index.cgi.in
software/monitor/index.cgi.in
+3
-0
software/monitor/instance.cfg
software/monitor/instance.cfg
+23
-0
software/monitor/software.cfg
software/monitor/software.cfg
+6
-1
No files found.
software/monitor/index.cgi.in
0 → 100755
View file @
0c9629fd
#!{{ extra_eggs_interpreter }}
print "OK"
software/monitor/instance.cfg
View file @
0c9629fd
...
@@ -60,5 +60,28 @@ rendered = $${monitor-directory:server-log}/dygraph-combined.js
...
@@ -60,5 +60,28 @@ rendered = $${monitor-directory:server-log}/dygraph-combined.js
mode = 0644
mode = 0644
context =
context =
[pwgen]
recipe = slapos.cookbook:generate.password
user = admin
bytes = 16
[pwgen32]
recipe = slapos.cookbook:generate.password
user = admin
bytes = 16
[htpasswd-generate]
recipe = plone.recipe.command
output = $${monitor-parameters:htaccess-file}
long_passwd = $${pwgen:passwd}$${pwgen32:passwd}
update-command = $${:command}
command =
echo ${apache:location}/bin/htpasswd $${:output} $${pwgen:user} $${:long_passwd}
${apache:location}/bin/htpasswd -cb $${:output} $${pwgen:user} $${:long_passwd}
[monitor-directory]
[monitor-directory]
server-log = $${:private-directory}/server-log
server-log = $${:private-directory}/server-log
[monitor-parameters]
url = https://$${pwgen:user}:$${htpasswd-generate:long_passwd}@[$${slap-parameters:ipv6-random}]:$${:port}
software/monitor/software.cfg
View file @
0c9629fd
...
@@ -15,9 +15,14 @@ parts =
...
@@ -15,9 +15,14 @@ parts =
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/instance.cfg
output = ${buildout:directory}/instance.cfg
md5sum =
df01574007b7e9a05cf9a4eabe07e78c
md5sum =
68e146558156c0702344c83876b4daf8
mode = 0644
mode = 0644
# stupify index for now
[index]
url = ${:_profile_base_location_}/${:filename}
md5sum = 99ad2a7a9dbdae35e3d9aef352c4f0d5
[rsync-logs-script]
[rsync-logs-script]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/rsync-logs.sh.in
url = ${:_profile_base_location_}/rsync-logs.sh.in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment