mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-20 02:16:42 +00:00
update nginx config
This commit is contained in:
parent
3872e1135d
commit
e79995d313
@ -12,7 +12,7 @@
|
|||||||
:api="api"
|
:api="api"
|
||||||
/>
|
/>
|
||||||
<canvas id="textMeasurementCanvas"/>
|
<canvas id="textMeasurementCanvas"/>
|
||||||
<Watermark text="music-graph v1.2"/>
|
<Watermark text="music-graph v2.0"/>
|
||||||
<LoadingIndicator :loading="loading"/>
|
<LoadingIndicator :loading="loading"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
24
nginx.conf
24
nginx.conf
@ -24,22 +24,22 @@ http {
|
|||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
upstream api {
|
upstream api {
|
||||||
server mg_api:3030;
|
server mg_api;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
|
||||||
index index.html;
|
index index.html;
|
||||||
root /webroot;
|
root /webroot;
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /api(.*)$ {
|
location ~ /api(.*)$ {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass http://api$1?$args;
|
proxy_pass http://api:3030$1?$args;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user