Wykres commitów

8 Commity (e7654ff9300ace3bd8bb9777c721e64a1dc91264)

Autor SHA1 Wiadomość Data
Chris McCormick 7d4e7e2cb7 Env UWSGI_INCLUDE_FILE to include custom uwsgi. (#93) 2019-08-22 17:40:00 +01:00
Chris McCormick 90d20dac28 Include a custom nginx config fragment with NGINX_INCLUDE_FILE (#79)
* Refactor common config out of nginx templates.

* A way to inject custom nginx directives.

Setting the ENV variable `NGINX_INCLUDE_FILE` allows the user to specify a
file, relative to the app folder, which will be inserted into the nginx
server config.

This is useful for e.g. overriding a variable. For example to allow
uploads larger than 1Mb the user could create a file called `nginx.conf`
in their app repo containing: `client_max_body_size 8M;` and then set
`NGINX_INCLUDE_FILE=nginx.conf` in the ENV file.

This builds on #77 so that should be merged first.
2019-08-05 09:10:42 +01:00
Chris McCormick dca9342b2e Block access to .git folders (allow if NGINX_ALLOW_GIT_FOLDERS is set) (#78)
* Refactor common config out of nginx templates.

* Block access to .git folders with ENV to allow.

See #76
2019-08-05 09:09:22 +01:00
Chris McCormick 9876ecc2e0 Fix to upgrade node version correctly. (#73)
This patch changes piku to check the installed node version and leave it
if correct.

It also separates the nodeenv install and the npm install steps.

It will also warn the user if they try to change the node version in a
running app, and tells them to stop and then deploy the app again in
order to update the node version.

Fixes #70.
2019-08-05 09:08:48 +01:00
Chris McCormick dce587c053 Node improvements and versioning (#58)
* Fix node path insert to not clobber env.

* Tighter check on python venv for uwsgi conf.

* Install NODE_VERSION if nodeenv on PATH.

* Document NODE_VERSION setting.
2019-07-13 16:29:34 +01:00
Chris McCormick e424f3d7b5 Alias NGINX_HTTPS_ONLY and add doc. (#28) 2019-06-20 15:05:18 +01:00
Chris McCormick c8328a3d93 Nit: typo. (#29) 2019-05-26 13:54:28 +01:00
Rui Carmo 3307bf281c REPL 2017-05-15 21:37:14 +01:00