From 7ad0d8601e126e015f3fd84b1c6f24e2c3948a18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20H=C3=B6ffner?= <info@sebastian-hoeffner.de>
Date: Tue, 16 Oct 2018 10:17:59 +0200
Subject: [PATCH] Adding route /grammar to nginx to serve the grammar file.

---
 nginx.conf | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/nginx.conf b/nginx.conf
index 0e9f4ee..15bcd13 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -3,4 +3,11 @@ server {
         include uwsgi_params;
         uwsgi_pass unix:/tmp/ccgapp.sock;
     }
+
+    location /grammar {
+        alias /OpenCCG.ebnf;
+        add_header Content-Disposition 'inline; filename="OpenCCG.ebnf"';
+        default_type text/plain;
+        charset utf-8;
+    }
 }
-- 
GitLab