Commit 0b2f865e authored by Romain Courteaud's avatar Romain Courteaud

Profile tmp environnment for nginx.

parent 099ee5ef
......@@ -14,6 +14,7 @@ srv = $${buildout:directory}/srv
var = $${buildout:directory}/var
run = $${:var}/run
log = $${:var}/log
varnginx = $${:var}/nginx
# scripts = $${:etc}/run
services = $${:etc}/service
cron-entries = $${:etc}/cron.d
......
......@@ -182,7 +182,7 @@ mode = 0644
[template-nginx-configuration]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template-nginx.cfg.in
md5sum = 1cf80a510a9ba9f6d9f12e2ce828615e
md5sum = adf823148b6643ab82083caabc52f15d
output = ${buildout:directory}/template-nginx.cfg.in
mode = 0644
......@@ -234,7 +234,7 @@ mode = 0644
[template-pullrdiffbackup]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-pullrdiffbackup.cfg.in
md5sum = 935ee60f0454ab50df74d0bcc3364d37
md5sum = 3b1974f3a344fc1c1d86ec4ec44ae2ff
output = ${buildout:directory}/template-pullrdiffbackup.cfg
mode = 0644
......
......@@ -8,6 +8,8 @@ events {
# multi_accept on;
}
error_log $${nginx-configuration:error_log};
http {
##
......@@ -55,6 +57,13 @@ server {
ssl_certificate $${nginx-configuration:ssl_crt};
ssl_certificate_key $${nginx-configuration:ssl_key};
fastcgi_temp_path $${directory:varnginx} 1 2;
uwsgi_temp_path $${directory:varnginx} 1 2;
scgi_temp_path $${directory:varnginx} 1 2;
client_body_temp_path $${directory:varnginx} 1 2;
proxy_temp_path $${directory:varnginx} 1 2;
## Only allow GET and HEAD request methods
if ($request_method !~ ^(GET|HEAD)$ ) {
return 444;
......
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