fastly rule to preserve ip
authorSam <sam.saffron@gmail.com>
Tue, 12 May 2015 05:05:42 +0000 (15:05 +1000)
committerSam <sam.saffron@gmail.com>
Tue, 12 May 2015 05:12:24 +0000 (15:12 +1000)
templates/fastly.template.yml [new file with mode: 0644]

diff --git a/templates/fastly.template.yml b/templates/fastly.template.yml
new file mode 100644 (file)
index 0000000..7a3e332
--- /dev/null
@@ -0,0 +1,5 @@
+run:
+  - replace:
+     filename: "/etc/nginx/conf.d/discourse.conf"
+     from: "$proxy_add_x_forwarded_for"
+     to: "$http_fastly_client_ip"