Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Matevz Golob
slapos
Commits
05ebee93
Commit
05ebee93
authored
Aug 24, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create all temporary directory needed by nginx.
parent
a76a671e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
software/html5as/instance_html5as.cfg
software/html5as/instance_html5as.cfg
+13
-1
software/html5as/software.cfg
software/html5as/software.cfg
+5
-3
software/html5as/templates/nginx_conf.in
software/html5as/templates/nginx_conf.in
+5
-0
No files found.
software/html5as/instance_html5as.cfg
View file @
05ebee93
...
@@ -30,6 +30,7 @@ recipe = slapos.cookbook:mkdirectory
...
@@ -30,6 +30,7 @@ recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
etc = $${buildout:directory}/etc
var = $${buildout:directory}/var
var = $${buildout:directory}/var
srv = $${buildout:directory}/srv
srv = $${buildout:directory}/srv
tmp = $${buildout:directory}/tmp
[basedirectory]
[basedirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
...
@@ -39,6 +40,14 @@ run = $${rootdirectory:var}/run
...
@@ -39,6 +40,14 @@ run = $${rootdirectory:var}/run
backup = $${rootdirectory:srv}/backup
backup = $${rootdirectory:srv}/backup
data = $${rootdirectory:srv}/html5as
data = $${rootdirectory:srv}/html5as
[tempdirectory]
recipe = slapos.cookbook:mkdirectory
client_body_temp_path = $${rootdirectory:tmp}/client_body_temp_path
proxy_temp_path = $${rootdirectory:tmp}/proxy_temp_path
fastcgi_temp_path = $${rootdirectory:tmp}/fastcgi_temp_path
uwsgi_temp_path = $${rootdirectory:tmp}/uwsgi_temp_path
scgi_temp_path = $${rootdirectory:tmp}/scgi_temp_path
[html5as]
[html5as]
# Options
# Options
nb_workers = 2
nb_workers = 2
...
@@ -66,12 +75,15 @@ bin_html5as = $${basedirectory:services}/html5as
...
@@ -66,12 +75,15 @@ bin_html5as = $${basedirectory:services}/html5as
# Utils
# Utils
path_shell = ${dash:location}/bin/dash
path_shell = ${dash:location}/bin/dash
path_curl = ${curl:location}/bin/curl
path_curl = ${curl:location}/bin/curl
path_tar = ${tar:location}/bin/tar
[nginx_conf]
[nginx_conf]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${template_nginx_conf:location}/${template_nginx_conf:filename}
template = ${template_nginx_conf:location}/${template_nginx_conf:filename}
rendered = $${html5as:path_nginx_conf}
rendered = $${html5as:path_nginx_conf}
context = section param_html5as html5as
context =
section param_html5as html5as
section param_tempdir tempdirectory
[html5as_bin]
[html5as_bin]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
...
software/html5as/software.cfg
View file @
05ebee93
...
@@ -7,6 +7,7 @@ extends =
...
@@ -7,6 +7,7 @@ extends =
../../component/nginx/buildout.cfg
../../component/nginx/buildout.cfg
../../component/curl/buildout.cfg
../../component/curl/buildout.cfg
../../component/dash/buildout.cfg
../../component/dash/buildout.cfg
../../component/tar/buildout.cfg
allow-hosts =
allow-hosts =
*.nexedi.org
*.nexedi.org
...
@@ -20,6 +21,7 @@ allow-hosts =
...
@@ -20,6 +21,7 @@ allow-hosts =
parts =
parts =
dash
dash
tar
curl
curl
nginx
nginx
eggs
eggs
...
@@ -43,13 +45,13 @@ mode = 0644
...
@@ -43,13 +45,13 @@ mode = 0644
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance_html5as.cfg
url = ${:_profile_base_location_}/instance_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg
md5sum =
a5f27834bce33d6c188b0d24b1455ad0
md5sum =
4e797931c1497f3d637c3695afa77977
mode = 0644
mode = 0644
[template_nginx_conf]
[template_nginx_conf]
recipe = slapos.recipe.download
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/nginx_conf.in
url = ${:_profile_base_location_}/templates/nginx_conf.in
md5sum = 6
338abecda61f4414392b6f4c1d09e8a
md5sum = 6
cf7acfa6ca350687d0900bf5221f0e4
filename = nginx_conf.in
filename = nginx_conf.in
mode = 0644
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
...
@@ -57,7 +59,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
...
@@ -57,7 +59,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template_html5as_bin]
[template_html5as_bin]
recipe = slapos.recipe.download
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/html5as_bin.in
url = ${:_profile_base_location_}/templates/html5as_bin.in
md5sum =
397c17efdadc0b226f1f08879ffcc295
md5sum =
4c5043743fd6a7f0a54eee88ea074ce2
filename = html5as_bin.in
filename = html5as_bin.in
mode = 0644
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
...
...
software/html5as/templates/nginx_conf.in
View file @
05ebee93
...
@@ -21,6 +21,11 @@ http {
...
@@ -21,6 +21,11 @@ http {
server_name _;
server_name _;
keepalive_timeout 5;
keepalive_timeout 5;
client_body_temp_path {{ param_tempdir['client_body_temp_path'] }};
proxy_temp_path {{ param_tempdir['proxy_temp_path'] }};
fastcgi_temp_path {{ param_tempdir['fastcgi_temp_path'] }};
uwsgi_temp_path {{ param_tempdir['uwsgi_temp_path'] }};
scgi_temp_path {{ param_tempdir['scgi_temp_path'] }};
# path for static files
# path for static files
root {{ param_html5as['docroot'] }};
root {{ param_html5as['docroot'] }};
...
...
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