??:Supervisor ????? Admin ??????? IP ?? #304

Open
opened 2026-09-17 16:55:01 +08:00 by ila · 1 comment
Owner

??????

?? D:\supervisor ?? GoAuto ?,Admin ??? 127.0.0.1:9527 ??,????????? IP ???????????,??????????

????

  • API 8010 ??????,http://192.168.0.224:8010/api/v1/health ?? 200?
  • Web 9527 ??? 127.0.0.1,??? IP ?????
  • scripts/start-web.ps1 ? Vite host ??? 127.0.0.1,?????? API origin ??? http://127.0.0.1:<serverPort>?
  • Supervisor goauto.conf ???????,?????

??

  1. ?? Supervisor ??? Admin Web ?? 0.0.0.0:<webPort>?
  2. ?????????,API ????? Web ?????????? 127.0.0.1:<serverPort>,??????????? localhost?
  3. ?? config.yaml ?????? Supervisor ???????

???

  • ????? Nginx/?????
  • ????? Windows ??????
  • ??? Supervisor,????????

????

  • scripts/start-web.ps1:? VUE_APP_BASE_API ????,???????????;????? Vite ??????? origin;Vite ???? 0.0.0.0?
  • web/vite.config.mjs:?????? /api ? /static ??????;?????????????????
  • ???/????,????? host ???

??

?????????????????????;???????????Windows ?????? 9527,??????????

??

  • ?????????
  • Web ?????
  • ?????,?? 127.0.0.1:9527 ???? 192.168.0.224:9527 ?????
  • ?????? API/?????????

????

??????????????????,???? Deployment-and-Operations Wiki,???? revision ????????

## ?????? ?? `D:\supervisor` ?? GoAuto ?,Admin ??? `127.0.0.1:9527` ??,????????? IP ???????????,?????????? ## ???? - API `8010` ??????,`http://192.168.0.224:8010/api/v1/health` ?? 200? - Web `9527` ??? `127.0.0.1`,??? IP ????? - `scripts/start-web.ps1` ? Vite host ??? `127.0.0.1`,?????? API origin ??? `http://127.0.0.1:<serverPort>`? - Supervisor `goauto.conf` ???????,????? ## ?? 1. ?? Supervisor ??? Admin Web ?? `0.0.0.0:<webPort>`? 2. ?????????,API ????? Web ?????????? `127.0.0.1:<serverPort>`,??????????? localhost? 3. ?? `config.yaml` ?????? Supervisor ??????? ## ??? - ????? Nginx/????? - ????? Windows ?????? - ??? Supervisor,???????? ## ???? - `scripts/start-web.ps1`:? `VUE_APP_BASE_API` ????,???????????;????? Vite ??????? origin;Vite ???? `0.0.0.0`? - `web/vite.config.mjs`:?????? `/api` ? `/static` ??????;????????????????? - ???/????,????? host ??? ## ?? ?????????????????????;???????????Windows ?????? `9527`,?????????? ## ?? - ????????? - Web ????? - ?????,?? `127.0.0.1:9527` ???? `192.168.0.224:9527` ????? - ?????? API/????????? ## ???? ??????????????????,???? Deployment-and-Operations Wiki,???? revision ????????
Author
Owner

????,???

????:9194fd6

??

  • scripts/start-web.ps1:Admin Web ???? 0.0.0.0:<webPort>;??? API ??????????;???? Vite ???? 127.0.0.1:<serverPort>?
  • web/vite.config.mjs:?????? /api?/static;????????????,????? .env.development ?? localhost API ???
  • Supervisor ???????;API ????

???????

????????? LAN ??,?? .env.development ????????????????????????????:

  • http://192.168.0.224:9527/api/v1/health -> 200
  • http://192.168.0.224:9527/api/v1/captcha -> 200
  • http://192.168.0.224:9527/api/v1/app-config -> 200

??

  • start-web.ps1 -ValidateConfigOnly:???
  • Vite ????:??? base API ??;/api ? /static ?? 127.0.0.1:8010:???
  • pnpm run build:prod:??(??? CSS/chunk ??)?
  • git diff --check:???

??

  • ?? Wiki Deployment-and-Operations,revision a8da51a554b9c43da4b72104d707d3c72c5cd534?
  • harness.py sync ? sync --check:???

???

???? Supervisor ? goauto-admin-ui,?????????,??? LAN ????? API????? API?

## ????,??? ????:`9194fd6` ### ?? - `scripts/start-web.ps1`:Admin Web ???? `0.0.0.0:<webPort>`;??? API ??????????;???? Vite ???? `127.0.0.1:<serverPort>`? - `web/vite.config.mjs`:?????? `/api`?`/static`;????????????,????? `.env.development` ?? localhost API ??? - Supervisor ???????;API ???? ### ??????? ????????? LAN ??,?? `.env.development` ????????????????????????????: - `http://192.168.0.224:9527/api/v1/health` -> 200 - `http://192.168.0.224:9527/api/v1/captcha` -> 200 - `http://192.168.0.224:9527/api/v1/app-config` -> 200 ### ?? - `start-web.ps1 -ValidateConfigOnly`:??? - Vite ????:??? base API ??;`/api` ? `/static` ?? `127.0.0.1:8010`:??? - `pnpm run build:prod`:??(??? CSS/chunk ??)? - `git diff --check`:??? ### ?? - ?? Wiki `Deployment-and-Operations`,revision `a8da51a554b9c43da4b72104d707d3c72c5cd534`? - `harness.py sync` ? `sync --check`:??? ### ??? ???? Supervisor ? `goauto-admin-ui`,?????????,??? LAN ????? API????? API?
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OPC/goauto#304