summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j2')
-rw-r--r--vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j235
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j2 b/vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j2
new file mode 100644
index 00000000..17966f7a
--- /dev/null
+++ b/vendor/ruflin/elastica/ansible/roles/nginx/templates/nginx.conf.j2
@@ -0,0 +1,35 @@
+events {
+ worker_connections 1024;
+}
+
+http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json;
+
+ server {
+ listen 80;
+
+ root {{ ES_PROJECT_ROOT }};
+
+ location / {
+ autoindex on;
+ }
+ }
+
+ server {
+ listen 127.0.0.1:12345;
+
+ location / {
+ proxy_pass http://127.0.0.1:9200;
+ }
+ }
+
+ server {
+ listen 127.0.0.1:12346;
+
+ location / {
+ return 403;
+ }
+ }
+}