compile and install LUA 5.1.5 to /opt/bunkerized-nginx/deps and introduced REDIRECT_TO feature

This commit is contained in:
bunkerity
2021-07-15 16:36:26 +02:00
parent 71cf3cf5c1
commit 2b923c05c1
5 changed files with 88 additions and 18 deletions

View File

@@ -0,0 +1 @@
return 301 {{ REDIRECT_TO }}$request_uri;

View File

@@ -172,7 +172,12 @@ server {
# inject into body
{% if INJECT_BODY != "" +%}
include {{ NGINX_PREFIX}}inject-body.conf;
include {{ NGINX_PREFIX }}inject-body.conf;
{% endif %}
# redirect everything to another host
{% if REDIRECT_TO != "" +%}
include {{ NGINX_PREFIX }}redirect-to.conf;
{% endif %}
# reverse proxy