Removed /v1/ prefix from Haskell source code. Optimised backend image. Added newlines to frontend.

This commit is contained in:
2022-07-12 02:24:45 +01:00
parent e3c27c6609
commit ba75a239e6
5 changed files with 62 additions and 24 deletions
+6 -4
View File
@@ -6,13 +6,15 @@ http {
server {
listen 80;
server_name _;
location /v1 {
proxy_pass http://backend:80;
}
location / {
rewrite ^/.* / break;
rewrite ^/.+ / break;
proxy_pass http://frontend:80/index.html;
}
location /v1 {
rewrite ^/v1/(.*) /$1 break;
proxy_pass http://backend:80;
}
}
}