summaryrefslogtreecommitdiff
path: root/ansible/nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/nginx.conf.j2')
-rw-r--r--ansible/nginx.conf.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/nginx.conf.j2 b/ansible/nginx.conf.j2
new file mode 100644
index 0000000..a890814
--- /dev/null
+++ b/ansible/nginx.conf.j2
@@ -0,0 +1,13 @@
+server {
+ listen 80;
+ ec2_user {{ server_ip }};
+
+ location / {
+ proxy_pass http://unix:/opt/image_processor/myapp.sock;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+}
+