fix: ALLOWED_HOSTS

This commit is contained in:
2026-05-14 15:06:31 +02:00
parent 9cc7249278
commit 6f9cf076cb
3 changed files with 13 additions and 2 deletions
+1
View File
@@ -1,2 +1,3 @@
IMAGE_TAG=latest
MAIN_PORT=3000
NG_ALLOWED_HOSTS=fraujulian.xyz,www.fraujulian.xyz,test.fraujulian.xyz
+4 -1
View File
@@ -1,5 +1,5 @@
services:
app:
portfolio:
image: docker.lechner-systems.at/lechnersystems/portfolio:${IMAGE_TAG}
build:
context: .
@@ -7,5 +7,8 @@ services:
restart: unless-stopped
env_file:
- .env
dns:
- 192.168.100.2
- 192.168.100.6
ports:
- ${MAIN_PORT}:3000
+8 -1
View File
@@ -10,9 +10,16 @@ import bootstrap from './main.server';
const serverDistFolder: string = dirname(fileURLToPath(import.meta.url));
const browserDistFolder: string = resolve(serverDistFolder, '../browser');
const indexHtml: string = join(serverDistFolder, 'index.server.html');
const allowedHosts: readonly string[] = [
'fraujulian.xyz',
'www.fraujulian.xyz',
'test.fraujulian.xyz',
'localhost',
'127.0.0.1',
];
const app: Express = express();
const commonEngine: CommonEngine = new CommonEngine();
const commonEngine: CommonEngine = new CommonEngine({ allowedHosts });
app.use(
express.static(browserDistFolder, {