From 4d43e952fff25b5b131e8699858da663a5ac2c42 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sun, 28 Feb 2021 09:18:48 +0100 Subject: initial commit --- infra/nginx/lex.surf_dev | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 infra/nginx/lex.surf_dev (limited to 'infra/nginx/lex.surf_dev') 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 ~^(?[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; + } +} -- cgit v1.2.3