diff options
author | Martin Fischer <martin@push-f.com> | 2021-02-28 09:18:48 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-03-03 12:52:46 +0100 |
commit | 4d43e952fff25b5b131e8699858da663a5ac2c42 (patch) | |
tree | acff62119061480a1cd7580f25c16c539aabc2ae /infra/nginx/lex.surf_dev |
initial commit
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; + } +} |