Browse Source

add nginx proxy url

pull/700/head
cKey 3 years ago
parent
commit
05c369a061
  1. 6
      apps/vue/docker/nginx/default.conf
  2. 1
      apps/vue/src/views/dashboard/workbench/components/MenuCard.vue

6
apps/vue/docker/nginx/default.conf

@ -41,6 +41,12 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~/wapi/ {
proxy_pass http://www.nmc.cn/;
proxy_set_header Host www.nmc.cn;
proxy_set_header Referer http://www.nmc.cn;
}
location /signalr-hubs/ {
proxy_pass http://127.0.0.1:30000/;
proxy_http_version 1.1;

1
apps/vue/src/views/dashboard/workbench/components/MenuCard.vue

@ -65,6 +65,7 @@
{
label: t('routes.dashboard.workbench.menus.deleteMenu'),
icon: 'ant-design:delete-outlined',
disabled: menu.hasDefault,
handler: () => {
if (!menu.hasDefault) {
createConfirm({

Loading…
Cancel
Save