Remove nginx and serve Angular directly from Spring Boot (#2662)

* feat: remove nginx and serve Angular directly from Spring Boot

* fix: handle null values in EnabledFields deserialization from persisted JSON

* fix(migration): auto-repair failed Flyway migrations on startup

* fix(migration): replace DB triggers with app-level orphan cleanup

* fix: restore default port to 6060 for backwards compatibility

* fix: align all port references to 6060 and add OPDS compression MIME types

* fix: resolve NG0101 recursive tick error in book browser selection

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-02-08 15:02:25 -07:00
committed by GitHub
co-authored by acx10
parent 843b64969c
commit bc7ba8b933
24 changed files with 172 additions and 219 deletions
@@ -1,4 +1,4 @@
import {AfterViewInit, ApplicationRef, ChangeDetectorRef, Component, HostListener, inject, NgZone, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {AfterViewInit, ChangeDetectorRef, Component, HostListener, inject, OnDestroy, OnInit, ViewChild} from '@angular/core';
import {ActivatedRoute, NavigationStart, Router} from '@angular/router';
import {ConfirmationService, MenuItem, MessageService} from 'primeng/api';
import {PageTitleService} from '../../../../shared/service/page-title.service';
@@ -105,8 +105,6 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
protected appSettingsService = inject(AppSettingsService);
private cdr = inject(ChangeDetectorRef);
private ngZone = inject(NgZone);
private appRef = inject(ApplicationRef);
private activatedRoute = inject(ActivatedRoute);
private router = inject(Router);
private messageService = inject(MessageService);
@@ -477,11 +475,8 @@ export class BookBrowserComponent implements OnInit, AfterViewInit, OnDestroy {
this.bookSelectionService.selectedBooks$
.pipe(takeUntil(this.destroy$))
.subscribe(selectedBooks => {
this.ngZone.run(() => {
this.selectedCount = selectedBooks.size;
this.cdr.detectChanges();
this.appRef.tick();
});
this.selectedCount = selectedBooks.size;
this.cdr.detectChanges();
});
}
+2 -2
View File
@@ -1,7 +1,7 @@
export const environment = {
production: false,
API_CONFIG: {
BASE_URL: 'http://localhost:8080',
BROKER_URL: 'ws://localhost:8080/ws',
BASE_URL: 'http://localhost:6060',
BROKER_URL: 'ws://localhost:6060/ws',
},
};