mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-29 19:57:12 +00:00
feat: change default listen port from 3000 to 1852 (#756)
Updates the backend listen port, Vite dev proxy target, Docker EXPOSE, compose port mapping, .env.example default, GitHub Actions smoke-test default, healthcheck URLs, and every doc/example reference. Test fixtures that include example URLs were updated for consistency, though their assertions are port-agnostic. The rate-limit value of 3000 in middleware/rateLimiters.ts and the 3000 entry in WEB_UI_PORTS (which detects user containers like Grafana) are intentionally untouched.
This commit is contained in:
@@ -1185,7 +1185,7 @@ describe('SchedulerService - executeUpdateRemote', () => {
|
||||
it('proxies update execution to remote node', async () => {
|
||||
mockGetNode.mockReturnValue({ id: 2, name: 'remote', type: 'remote', status: 'online' });
|
||||
mockGetProxyTarget.mockReturnValue({
|
||||
apiUrl: 'http://remote:3000',
|
||||
apiUrl: 'http://remote:1852',
|
||||
apiToken: 'test-token',
|
||||
});
|
||||
|
||||
@@ -1211,7 +1211,7 @@ describe('SchedulerService - executeUpdateRemote', () => {
|
||||
await svc.triggerTask(88);
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'http://remote:3000/api/auto-update/execute',
|
||||
'http://remote:1852/api/auto-update/execute',
|
||||
expect.objectContaining({
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ target: 'web-app' }),
|
||||
@@ -1226,7 +1226,7 @@ describe('SchedulerService - executeUpdateRemote', () => {
|
||||
it('records failure when remote node returns error', async () => {
|
||||
mockGetNode.mockReturnValue({ id: 2, name: 'remote', type: 'remote', status: 'online' });
|
||||
mockGetProxyTarget.mockReturnValue({
|
||||
apiUrl: 'http://remote:3000',
|
||||
apiUrl: 'http://remote:1852',
|
||||
apiToken: 'test-token',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user