Removed /v1/ prefix from Haskell source code. Optimised backend image. Added newlines to frontend.
This commit is contained in:
+6
-4
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user