Commit 49f2b3db authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: public url for serving static content added

parent 04ca97a7
...@@ -29,6 +29,12 @@ Optional parameter. ...@@ -29,6 +29,12 @@ Optional parameter.
Default: 10 Default: 10
Public-directory
----------------
You can serve static files with the webrunner. For that, just put your data in "srv/runner/public". All these files will be served throught the url of the webrunner + "/public/". Useful for developping your own static website.
AUTO-DEPLOYMENT AUTO-DEPLOYMENT
--------------- ---------------
......
...@@ -122,6 +122,7 @@ recipe = slapos.cookbook:mkdirectory ...@@ -122,6 +122,7 @@ recipe = slapos.cookbook:mkdirectory
home = $${directory:srv}/runner/ home = $${directory:srv}/runner/
test = $${directory:srv}/test/ test = $${directory:srv}/test/
project = $${:home}/project project = $${:home}/project
public = $${:home}/public
software-root = $${:home}/software software-root = $${:home}/software
instance-root = $${:home}/instance instance-root = $${:home}/instance
project-test = $${:test}/project project-test = $${:test}/project
......
...@@ -64,6 +64,10 @@ http { ...@@ -64,6 +64,10 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $http_host;
} }
location /public/ {
root {{ param_nginx_frontend['work_dir'] }};
index index.html index.htm;
}
location /share { location /share {
rewrite ^/share / break; rewrite ^/share / break;
......
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