Merge pull request #5 from salt-formulas/add-proxy-rewrite-option2

add-proxy-rewrite-option - only proxy
diff --git a/nginx/files/proxy.conf b/nginx/files/proxy.conf
index 39f941c..7e97bbe 100644
--- a/nginx/files/proxy.conf
+++ b/nginx/files/proxy.conf
@@ -44,6 +44,10 @@
       send_timeout 600;
       {%- endif %}
 
+      {%- if site.proxy.rewrite is defined %}
+      rewrite {{ site.proxy.rewrite }};
+      {%- endfor %}
+
       {%- if site.proxy.filter is defined %}
       sub_filter '{{ site.proxy.filter.search }}' {% if site.proxy.filter.replace == '$server_addr' %}$server_addr{% else %}'{{ site.proxy.filter.replace }}'{% endif %};
       sub_filter_types *;