update config client

This commit is contained in:
Cyril Rouillon 2024-10-15 16:27:53 +02:00
parent f43e802501
commit 8e1261cfa7
9 changed files with 27 additions and 13 deletions

View File

@ -39,4 +39,6 @@ POST http://localhost:3000/api/favorite/save
GET http://localhost:3000/api/favorite/getAll
# Prod
git clone https://gitlab.cyro-technology.com/cyril/Jucundus
npm run start

View File

@ -53,7 +53,8 @@
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
"outputHashing": "all",
"allowedCommonJsDependencies": ["moment-timezone"]
},
"development": {
"buildOptimizer": false,

View File

@ -4,7 +4,7 @@
<head><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<meta charset="utf-8">
<title>Jucundus</title>
<base href="/angular-material-template/">
<base href=".">
<meta name="viewport" content="width=device-width, initial-scale=1">
@ -32,6 +32,6 @@
<body class="mat-app-background">
<app-root></app-root>
<script src="runtime.475575d3cc22a138.js" type="module"></script><script src="polyfills.febf6ea84d149d1b.js" type="module"></script><script src="main.fc1d97ee0494099d.js" type="module"></script></body>
<script src="runtime.475575d3cc22a138.js" type="module"></script><script src="polyfills.febf6ea84d149d1b.js" type="module"></script><script src="main.5bb5111fcbed767e.js" type="module"></script></body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

10
client/nginx.conf Normal file
View File

@ -0,0 +1,10 @@
server {
listen 80;
server_name jucundus.saucisse.ninja;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
}

View File

@ -4,5 +4,5 @@ export const environment = {
production: true,
logLevel: NgxLoggerLevel.OFF,
serverLogLevel: NgxLoggerLevel.ERROR,
ServeurURL: "http://localhost:3000"
ServeurURL: "https://jucundus.saucisse.ninja:3000/backend"
};

View File

@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<title>Jucundus</title>
<base href="/">
<base href=".">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -1,11 +1,9 @@
version: '3.1'
version: '3.7'
services:
db:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data:/data/db
networks:
@ -17,8 +15,8 @@ services:
volumes:
- ./backend:/backend
ports:
- "3000:3000"
command: ["npm", "run", "start"]
- "3000"
command: ["sh", "-c", "npm install && npm run start"]
depends_on:
- db
networks:
@ -36,9 +34,10 @@ services:
restart: always
hostname: jucundus.saucisse.ninja
ports:
- "80:80"
- "80"
volumes:
- ./client/dist/angular-material-template:/usr/share/nginx/html
- ./client/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
labels:
@ -56,4 +55,6 @@ services:
- "traefik.http.services.scrapper.loadbalancer.server.port=80"
networks:
backend-network:
backend-network:
driver: bridge