diff options
Diffstat (limited to 'infra/nginx/lex.surf_dev')
-rw-r--r-- | infra/nginx/lex.surf_dev | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/infra/nginx/lex.surf_dev b/infra/nginx/lex.surf_dev new file mode 100644 index 0000000..a00ebba --- /dev/null +++ b/infra/nginx/lex.surf_dev @@ -0,0 +1,35 @@ +server { + listen 80; + listen [::]:80; + server_name lex.localhost; + + location / { + proxy_pass http://127.0.0.1:8000; + proxy_set_header Host lex.localhost; + } + + root /var/www/lex.surf; + + location /assets/ { + try_files $uri =404; + } +} + +server { + listen 80; + listen [::]:80; + server_name ~^(?<cc>[a-z]+).lex.localhost$; + + location / { + proxy_pass http://127.0.0.1:8000; + proxy_set_header Host $cc.lex.localhost; + } + + root /var/www/lex.surf; + + location = /laws.json { + gzip on; + gzip_types *; + try_files /laws/$cc.json =404; + } +} |