From ef33baacba7599e98f55e1688bd21c64c7317e0e Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 19 Sep 2022 19:41:47 +1000 Subject: [PATCH] static --- docker-compose.MCRATES.yaml | 1 + nginx/matescrates.au.nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.MCRATES.yaml b/docker-compose.MCRATES.yaml index 2bf1355..d454b30 100644 --- a/docker-compose.MCRATES.yaml +++ b/docker-compose.MCRATES.yaml @@ -35,6 +35,7 @@ services: image: nginx:latest volumes: - './nginx/matescrates.au.nginx.conf:/etc/nginx/conf.d/default.conf' + - './client/build:/srv/matescrates' - '/etc/letsencrypt:/etc/letsencrypt' ports: - '80:80' diff --git a/nginx/matescrates.au.nginx.conf b/nginx/matescrates.au.nginx.conf index 3ba33e7..96396df 100644 --- a/nginx/matescrates.au.nginx.conf +++ b/nginx/matescrates.au.nginx.conf @@ -21,8 +21,8 @@ server { gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml; location / { - proxy_pass http://mcrates_client; - proxy_read_timeout 600s; + root /srv/matescrates; + try_files $uri $uri/ =404; } location /api/ws {