diff --git a/nginx.conf b/nginx.conf index 0e9f4eea7b9d54fe756886be266e9d40bff3007a..15bcd13b9372288948dcbd4b111c9b776e1add61 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; + } }