diff --git a/music_graph/src/components/MainPage.vue b/music_graph/src/components/MainPage.vue
index 64284f6..719df59 100644
--- a/music_graph/src/components/MainPage.vue
+++ b/music_graph/src/components/MainPage.vue
@@ -12,7 +12,7 @@
:api="api"
/>
-
+
diff --git a/nginx.conf b/nginx.conf
index bea2af5..82f3d08 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -24,22 +24,22 @@ http {
keepalive_timeout 65;
upstream api {
- server mg_api:3030;
+ server mg_api;
}
server {
- listen 80;
+ listen 80;
- index index.html;
- root /webroot;
- location / {
- try_files $uri $uri/ /index.html;
- }
+ index index.html;
+ root /webroot;
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
- location ~ /api(.*)$ {
- proxy_http_version 1.1;
- proxy_set_header Host $host;
- proxy_pass http://api$1?$args;
- }
+ location ~ /api(.*)$ {
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_pass http://api:3030$1?$args;
+ }
}
}