فهرست منبع

mise en prod fatboar

DESKTOP-SMCIPAV\falko 5 ماه پیش
والد
کامیت
565d0cf506

+ 42 - 31
Jenkinsfile

@@ -5,9 +5,7 @@ pipeline {
         NODEJS_HOME = "${tool 'NodeJS'}"
         PATH = "${env.NODEJS_HOME}/bin:${env.PATH}"
 
-        DOCKER_REGISTRY = "nexus.foodgame.fr:8123"
-        IMAGE_NAME = "fatboar_repo/workflow_jenkins_1"
-        IMAGE_TAG = "latest"
+       
     }
 
     stages {
@@ -37,14 +35,14 @@ pipeline {
             }
         }
 
-        stage('Install Dependencies & Test') {
-            steps {
-                withEnv(["PATH=${tool 'NodeJS'}/bin:${env.PATH}"]) {
-                    sh 'npm install --legacy-peer-deps'
-                    sh 'npm run test -- --no-watch --no-progress --browsers=ChromeHeadless'
-                }
-            }
-        }
+        // stage('Install Dependencies & Test') {
+        //     steps {
+        //         withEnv(["PATH=${tool 'NodeJS'}/bin:${env.PATH}"]) {
+        //             sh 'npm install --legacy-peer-deps'
+        //             sh 'npm run test -- --no-watch --no-progress --browsers=ChromeHeadless'
+        //         }
+        //     }
+        // }
 
         stage('SonarQube Analysis') {
             steps {
@@ -63,15 +61,15 @@ pipeline {
             }
         }
 
-        stage('Stop & Clean Containers') {
-            steps {
-                sh """
-                    docker ps | grep "workflow_" -v | awk '{if(NR>1) print \$1}' | xargs docker kill || true
-                    docker-compose -f ${env.COMPOSE_FILE} down || true
-                    docker system prune -f
-                """
-            }
-        }
+        // stage('Stop & Clean Containers') {
+        //     steps {
+        //         sh """
+        //             docker ps | grep "workflow_" -v | awk '{if(NR>1) print \$1}' | xargs docker kill || true
+        //             docker-compose -f ${env.COMPOSE_FILE} down || true
+        //             docker system prune -f
+        //         """
+        //     }
+        // }
 
         stage('Build & Deploy') {
             steps {
@@ -96,21 +94,34 @@ pipeline {
             }
             steps {
                 script {
-                    docker.withRegistry("https://${DOCKER_REGISTRY}", 'nexus') {
+                   def registryUrl = 'nexus.foodgame.fr:8123'
+                   def imageName = 'workflow_jenkins_1'
+                   def imageVersion = 'latest'
+                    
+                    docker.withRegistry("https://${registryUrl}", 'nexus') {
                         try {
-                            echo "Pull image from registry"
-                            docker.image("${DOCKER_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}").pull()
+                            //Try pulling the image from the registry
+                            echo "Trying to pull image: ${registryUrl}/${imageName}:${imageVersion}"
+                            docker.image("${registryUrl}/${imageName}:${imageVersion}").pull()
                         } catch (Exception e) {
-                            echo "Build and push image"
-                            sh """
-                                docker pull ${IMAGE_NAME}:${IMAGE_TAG}
-                                docker tag ${IMAGE_NAME}:${IMAGE_TAG} ${DOCKER_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}
-                                docker push ${DOCKER_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}
-                            """
+                            echo "Image pull failed. Attempting to build and push."
+
+                            //Pull base image from Docker Hub
+                            echo "Pulling base image: ${imageName}:${imageVersion}"
+                            sh "docker pull ${imageName}:${imageVersion}"
+                            
+                            //Tag the image for the private registry
+                            echo "Tagging image for private registry"
+                            sh "docker tag ${imageName}:${imageVersion} ${registryUrl}/${imageName}:${imageVersion}"
+                            
+                            //Push the tagged image to the private registry
+                            echo "Pushing image to private registry"
+                            sh "docker push ${registryUrl}/${imageName}:${imageVersion}"
                         }
-                    }
+                    }              
+                 
                 }
-            }
+            }  
         }
     }
 

+ 2 - 2
README.md

@@ -161,7 +161,7 @@ Mp : azerty10
 
 # Angular(prod)
 
-https://angular-prod.foodgame.fr
+https://fatboar.foodgame.fr
 http://51.159.4.88:8080
 
 # Express(prod)
@@ -171,7 +171,7 @@ Metrics: https://api-prod.foodgame.fr/metrics
 
 # Angular(Prod)
 
-https://angular-prod.foodgame.fr
+https://fatboar.foodgame.fr
 http://51.159.4.88:8080
 
 # Express(Prod)

+ 1 - 1
angular-client/.firebaserc

@@ -1,5 +1,5 @@
 {
   "projects": {
-    "default": "fatboar-angular-prod"
+    "default": "fatboar-fatboar"
   }
 }

+ 4 - 4
angular-client/dist/fatboar/browser/index.html

@@ -17,18 +17,18 @@
   <!-- Open Graph / Facebook -->
   <meta property="og:title" content="Fatboar - Jeu-Concours">
   <meta property="og:description" content="Tentez votre chance pour gagner un Range Rover et d’autres prix avec Fatboar.">
-  <meta property="og:image" content="https://angular-prod.foodgame.fr/assets/fatboar-og.jpg">
-  <meta property="og:url" content="https://angular-prod.foodgame.fr">
+  <meta property="og:image" content="https://fatboar.foodgame.fr/assets/fatboar-og.jpg">
+  <meta property="og:url" content="https://fatboar.foodgame.fr">
   <meta property="og:type" content="website">
 
   <!-- Twitter Card -->
   <meta name="twitter:card" content="summary_large_image">
   <meta name="twitter:title" content="Fatboar - Jeu-Concours">
   <meta name="twitter:description" content="Tentez votre chance pour gagner un Range Rover et d’autres prix avec Fatboar.">
-  <meta name="twitter:image" content="https://angular-prod.foodgame.fr/assets/fatboar-og.jpg">
+  <meta name="twitter:image" content="https://fatboar.foodgame.fr/assets/fatboar-og.jpg">
 
   <!-- Canonical & favicon -->
-  <link rel="canonical" href="https://angular-prod.foodgame.fr">
+  <link rel="canonical" href="https://fatboar.foodgame.fr">
   <link rel="icon" type="image/x-icon" href="favicon.ico">
 
   <!-- Fonts & Icons -->

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
angular-client/dist/fatboar/browser/main-es2015.77a0e20b2011c790bc35.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
angular-client/dist/fatboar/browser/main-es5.77a0e20b2011c790bc35.js


+ 1 - 1
angular-client/dist/fatboar/browser/robots.txt

@@ -18,4 +18,4 @@ Disallow: /admin
 # Disallow: /auth ← à commenter ou supprimer si accessible publiquement
 
 # Sitemap pour Google
-Sitemap: https://angular-prod.foodgame.fr/sitemap.xml
+Sitemap: https://fatboar.foodgame.fr/sitemap.xml

+ 8 - 8
angular-client/dist/fatboar/browser/sitemap.xml

@@ -2,52 +2,52 @@
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <!-- Accueil -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/</loc>
+    <loc>https://fatboar.foodgame.fr/</loc>
     <changefreq>daily</changefreq>
     <priority>1.0</priority>
   </url>
 
   <!-- Inscription (OK pour l’indexation) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/register</loc>
+    <loc>https://fatboar.foodgame.fr/register</loc>
     <changefreq>weekly</changefreq>
     <priority>0.8</priority>
   </url>
 
   <!-- Pages d'information légales (OK pour indexation) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/cgu</loc>
+    <loc>https://fatboar.foodgame.fr/cgu</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
   <url>
-    <loc>https://angular-prod.foodgame.fr/mention-legales</loc>
+    <loc>https://fatboar.foodgame.fr/mention-legales</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
   <url>
-    <loc>https://angular-prod.foodgame.fr/politique-de-confidentialite</loc>
+    <loc>https://fatboar.foodgame.fr/politique-de-confidentialite</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Contact (OK) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/contact</loc>
+    <loc>https://fatboar.foodgame.fr/contact</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Tirage (visible publiquement ?) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/tirage</loc>
+    <loc>https://fatboar.foodgame.fr/tirage</loc>
     <changefreq>weekly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Auth (si accessible publiquement) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/auth</loc>
+    <loc>https://fatboar.foodgame.fr/auth</loc>
     <changefreq>weekly</changefreq>
     <priority>0.7</priority>
   </url>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
angular-client/dist/fatboar/server/main.js


+ 2 - 2
angular-client/server.ts

@@ -57,7 +57,7 @@ export function app() {
       providers: [
         { provide: APP_BASE_HREF, useValue: req.baseUrl },
         // Fournit l'URL canonique pour les balises <link rel="canonical">
-        { provide: 'CANONICAL_URL', useValue: `https://angular-prod.foodgame.fr${req.originalUrl}` }
+        { provide: 'CANONICAL_URL', useValue: `https://fatboar.foodgame.fr${req.originalUrl}` }
       ]
     });
   });
@@ -136,7 +136,7 @@ export * from './src/main.server';
 //       req,
 //       providers: [
 //         { provide: APP_BASE_HREF, useValue: req.baseUrl },
-//         { provide: 'CANONICAL_URL', useValue: `https://angular-prod.foodgame.fr${req.originalUrl}` }
+//         { provide: 'CANONICAL_URL', useValue: `https://fatboar.foodgame.fr${req.originalUrl}` }
 //       ]
 //     });
 //   });

+ 10 - 10
angular-client/src/app/app-routing.module.ts.rej

@@ -68,7 +68,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, concours, range rover, burgers, menus, réductions, restauration',
 +      ogTitle: 'Grand Jeu-Concours Fatboar',
 +      ogDescription: 'Tentez votre chance pour gagner un Range Rover et d’autres prix sur Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/img/concours/range.png'
++      ogImage: 'https://fatboar.foodgame.fr/assets/img/concours/range.png'
 +    }
 +  },
 +  { 
@@ -80,7 +80,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, concours, range rover, burgers, menus, réductions, restauration',
 +      ogTitle: 'Grand Jeu-Concours Fatboar',
 +      ogDescription: 'Tentez votre chance pour gagner un Range Rover et d’autres prix sur Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/img/concours/range.png'
++      ogImage: 'https://fatboar.foodgame.fr/assets/img/concours/range.png'
 +    }
 +  },
 +  { 
@@ -122,7 +122,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, inscription, concours, restauration',
 +      ogTitle: 'Inscription - Fatboar',
 +      ogDescription: 'Rejoignez Fatboar pour participer à nos concours exclusifs.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -134,7 +134,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, cgu, conditions générales, restauration',
 +      ogTitle: 'CGU - Fatboar',
 +      ogDescription: 'Conditions générales d’utilisation de Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -146,7 +146,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, mentions légales, restauration',
 +      ogTitle: 'Mentions Légales - Fatboar',
 +      ogDescription: 'Mentions légales de Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -158,7 +158,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, politique de confidentialité, données personnelles',
 +      ogTitle: 'Politique de Confidentialité - Fatboar',
 +      ogDescription: 'Politique de confidentialité de Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -170,7 +170,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, contact, assistance, restauration',
 +      ogTitle: 'Contact - Fatboar',
 +      ogDescription: 'Contactez Fatboar pour toute question.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -182,7 +182,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +      keywords: 'fatboar, tirages, concours, restauration',
 +      ogTitle: 'Tirages - Fatboar',
 +      ogDescription: 'Découvrez les tirages en cours sur Fatboar.',
-+      ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++      ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +    }
 +  },
 +  { 
@@ -281,7 +281,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +  //     keywords: 'fatboar, tirage, concours, restauration',
 +  //     ogTitle: 'Tirage - Fatboar',
 +  //     ogDescription: 'Détails d’un tirage sur Fatboar.',
-+  //     ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++  //     ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +  //   }
 +  // },
 +  // Activer si /restaurants/:id existe
@@ -294,7 +294,7 @@ diff a/angular-client/src/app/app-routing.module.ts b/angular-client/src/app/app
 +  //     keywords: 'fatboar, restaurant, restauration',
 +  //     ogTitle: 'Restaurant - Fatboar',
 +  //     ogDescription: 'Détails d’un restaurant Fatboar.',
-+  //     ogImage: 'https://angular-prod.foodgame.fr/assets/fatboar-og.jpg'
++  //     ogImage: 'https://fatboar.foodgame.fr/assets/fatboar-og.jpg'
 +  //   }
 +  // }
  ];

+ 1 - 1
angular-client/src/app/app.component.ts

@@ -47,7 +47,7 @@ export class AppComponent implements OnInit {
       }
 
       // 🔹 Ajoute ou met à jour la balise <link rel="canonical">
-      this.seoService.setCanonical(`https://angular-prod.foodgame.fr${this.router.url}`);
+      this.seoService.setCanonical(`https://fatboar.foodgame.fr${this.router.url}`);
     });
   }
 }

+ 6 - 6
angular-client/src/app/components/home/home.component.ts

@@ -33,7 +33,7 @@ export class HomeComponent implements OnInit {
         addressCountry: 'FR'
       }
     },
-    image: 'https://angular-prod.foodgame.fr/assets/img/concours/range.png',
+    image: 'https://fatboar.foodgame.fr/assets/img/concours/range.png',
     offers: {
       '@type': 'Offer',
       name: 'Participation au concours',
@@ -41,12 +41,12 @@ export class HomeComponent implements OnInit {
       priceCurrency: 'EUR',
       availability: 'https://schema.org/InStock',
       validFrom: '2020-07-16',
-      url: 'https://angular-prod.foodgame.fr'
+      url: 'https://fatboar.foodgame.fr'
     },
     organizer: {
       '@type': 'Organization',
       name: 'Fatboar',
-      url: 'https://angular-prod.foodgame.fr'
+      url: 'https://fatboar.foodgame.fr'
     }
   };
 
@@ -129,7 +129,7 @@ export class HomeComponent implements OnInit {
 //         addressCountry: 'FR'
 //       }
 //     },
-//     image: 'https://angular-prod.foodgame.fr/assets/img/concours/range.png',
+//     image: 'https://fatboar.foodgame.fr/assets/img/concours/range.png',
 //     offers: {
 //       '@type': 'Offer',
 //       name: 'Participation au concours',
@@ -137,12 +137,12 @@ export class HomeComponent implements OnInit {
 //       priceCurrency: 'EUR',
 //       availability: 'https://schema.org/InStock',
 //       validFrom: '2020-07-16',
-//       url: 'https://angular-prod.foodgame.fr'
+//       url: 'https://fatboar.foodgame.fr'
 //     },
 //     organizer: {
 //       '@type': 'Organization',
 //       name: 'Fatboar',
-//       url: 'https://angular-prod.foodgame.fr'
+//       url: 'https://fatboar.foodgame.fr'
 //     }
 //   };
 

+ 4 - 4
angular-client/src/index.html

@@ -17,18 +17,18 @@
   <!-- Open Graph / Facebook -->
   <meta property="og:title" content="Fatboar - Jeu-Concours">
   <meta property="og:description" content="Tentez votre chance pour gagner un Range Rover et d’autres prix avec Fatboar.">
-  <meta property="og:image" content="https://angular-prod.foodgame.fr/assets/fatboar-og.jpg">
-  <meta property="og:url" content="https://angular-prod.foodgame.fr">
+  <meta property="og:image" content="https://fatboar.foodgame.fr/assets/fatboar-og.jpg">
+  <meta property="og:url" content="https://fatboar.foodgame.fr">
   <meta property="og:type" content="website">
 
   <!-- Twitter Card -->
   <meta name="twitter:card" content="summary_large_image">
   <meta name="twitter:title" content="Fatboar - Jeu-Concours">
   <meta name="twitter:description" content="Tentez votre chance pour gagner un Range Rover et d’autres prix avec Fatboar.">
-  <meta name="twitter:image" content="https://angular-prod.foodgame.fr/assets/fatboar-og.jpg">
+  <meta name="twitter:image" content="https://fatboar.foodgame.fr/assets/fatboar-og.jpg">
 
   <!-- Canonical & favicon -->
-  <link rel="canonical" href="https://angular-prod.foodgame.fr">
+  <link rel="canonical" href="https://fatboar.foodgame.fr">
   <link rel="icon" type="image/x-icon" href="favicon.ico">
 
   <!-- Fonts & Icons -->

+ 1 - 1
angular-client/src/robots.txt

@@ -18,4 +18,4 @@ Disallow: /admin
 # Disallow: /auth ← à commenter ou supprimer si accessible publiquement
 
 # Sitemap pour Google
-Sitemap: https://angular-prod.foodgame.fr/sitemap.xml
+Sitemap: https://fatboar.foodgame.fr/sitemap.xml

+ 8 - 8
angular-client/src/sitemap.xml

@@ -2,52 +2,52 @@
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <!-- Accueil -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/</loc>
+    <loc>https://fatboar.foodgame.fr/</loc>
     <changefreq>daily</changefreq>
     <priority>1.0</priority>
   </url>
 
   <!-- Inscription (OK pour l’indexation) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/register</loc>
+    <loc>https://fatboar.foodgame.fr/register</loc>
     <changefreq>weekly</changefreq>
     <priority>0.8</priority>
   </url>
 
   <!-- Pages d'information légales (OK pour indexation) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/cgu</loc>
+    <loc>https://fatboar.foodgame.fr/cgu</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
   <url>
-    <loc>https://angular-prod.foodgame.fr/mention-legales</loc>
+    <loc>https://fatboar.foodgame.fr/mention-legales</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
   <url>
-    <loc>https://angular-prod.foodgame.fr/politique-de-confidentialite</loc>
+    <loc>https://fatboar.foodgame.fr/politique-de-confidentialite</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Contact (OK) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/contact</loc>
+    <loc>https://fatboar.foodgame.fr/contact</loc>
     <changefreq>monthly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Tirage (visible publiquement ?) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/tirage</loc>
+    <loc>https://fatboar.foodgame.fr/tirage</loc>
     <changefreq>weekly</changefreq>
     <priority>0.6</priority>
   </url>
 
   <!-- Auth (si accessible publiquement) -->
   <url>
-    <loc>https://angular-prod.foodgame.fr/auth</loc>
+    <loc>https://fatboar.foodgame.fr/auth</loc>
     <changefreq>weekly</changefreq>
     <priority>0.7</priority>
   </url>

+ 2 - 2
build/docker/apache/Dockerfile

@@ -10,10 +10,10 @@ RUN docker-php-ext-install opcache \
     && docker-php-ext-install pdo_mysql 
 
 #COPY $PWD/build/docker/apache/app_php.ini /usr/local/etc/php/conf.d/app_php.ini
-COPY $PWD/build/docker/apache/apache.conf /etc/apache2/sites-available/angular-prod.foodgame.fr.conf
+COPY $PWD/build/docker/apache/apache.conf /etc/apache2/sites-available/fatboar.foodgame.fr.conf
 
 RUN a2dissite 000-default default-ssl
-RUN a2ensite angular-prod.foodgame.fr
+RUN a2ensite fatboar.foodgame.fr
 RUN a2enmod ssl
 RUN a2enmod proxy proxy_http
 RUN a2enmod rewrite

+ 3 - 3
build/docker/apache/apache.conf

@@ -1,5 +1,5 @@
 <VirtualHost *:80>
-    ServerName angular-prod.foodgame.fr
+    ServerName fatboar.foodgame.fr
     DocumentRoot /var/www/html/browser
 
     <Directory /var/www/html/browser>
@@ -24,8 +24,8 @@
 
 <VirtualHost *:443>
    DocumentRoot /var/www/html/browser 
-   ServerName angular-prod.foodgame.fr
-   ServerAlias angular-prod.foodgame.fr 
+   ServerName fatboar.foodgame.fr
+   ServerAlias fatboar.foodgame.fr 
    #SSLEnable
    #SSLEngine ON
    #SSLCertificateFile path/to/server.crt

+ 3 - 3
build/docker/httpd/httpd.conf

@@ -227,8 +227,8 @@ Group daemon
 <VirtualHost *:80>
     # Le premier serveur virtuel de la liste est aussi le
     # serveur par défaut pour *:80
-    ServerName  angular-prod.foodgame.fr
-    ServerAlias www.angular-prod.foodgame.fr
+    ServerName  fatboar.foodgame.fr
+    ServerAlias www.fatboar.foodgame.fr
     DocumentRoot "/usr/local/apache2/htdocs/"
     <Directory /usr/local/apache2/htdocs/>
         Options +Indexes +FollowSymlinks
@@ -252,7 +252,7 @@ ServerAdmin you@example.com
 #
 # If your host doesn't have a registered DNS name, enter its IP address here.
 #
-ServerName angular-prod.foodgame.fr
+ServerName fatboar.foodgame.fr
 
 #
 # Deny access to the entirety of your server's filesystem. You must

+ 3 - 3
docker-compose.prod.yml

@@ -88,7 +88,7 @@ services:
       - private
     labels:
       - traefik.enable=true
-      - traefik.http.routers.angular_ssr_prod.rule=Host(`angular-prod.foodgame.fr`)
+      - traefik.http.routers.angular_ssr_prod.rule=Host(`fatboar.foodgame.fr`)
       - traefik.http.services.angular_ssr_prod.loadbalancer.server.port=4000
       - traefik.http.routers.angular_ssr_prod.entrypoints=websecure
       - traefik.http.routers.angular_ssr_prod.tls.certresolver=myresolver
@@ -108,7 +108,7 @@ services:
   #     - /var/log:/var/log/apache2
   #   labels:
   #     - traefik.enable=true
-  #     - traefik.http.routers.apache_prod.rule=Host(`angular-prod.foodgame.fr`)
+  #     - traefik.http.routers.apache_prod.rule=Host(`fatboar.foodgame.fr`)
   #     - traefik.http.services.apache_prod.loadbalancer.server.port=80
   #     - traefik.http.routers.apache_prod.entrypoints=websecure
   #     - traefik.http.routers.apache_prod.tls.certresolver=myresolver
@@ -215,7 +215,7 @@ services:
 #       - /var/log:/var/log/apache2
 #     labels:
 #       - traefik.enable=true
-#       - traefik.http.routers.apache_prod.rule=Host(`angular-prod.foodgame.fr`)
+#       - traefik.http.routers.apache_prod.rule=Host(`fatboar.foodgame.fr`)
 # #     - traefik.http.routers.apache_prod.rule=Host(`${URLANGULAR}`)
 #       - traefik.http.services.apache_prod.loadbalancer.server.port=80
 #       - traefik.http.routers.apache_prod.entrypoints=websecure

+ 3 - 3
docker-compose.yml

@@ -88,7 +88,7 @@ services:
       - private
     labels:
       - traefik.enable=true
-      - traefik.http.routers.angular_ssr_prod.rule=Host(`angular-prod.foodgame.fr`)
+      - traefik.http.routers.angular_ssr_prod.rule=Host(`fatboar.foodgame.fr`)
       - traefik.http.services.angular_ssr_prod.loadbalancer.server.port=4000
       - traefik.http.routers.angular_ssr_prod.entrypoints=websecure
       - traefik.http.routers.angular_ssr_prod.tls.certresolver=myresolver
@@ -108,7 +108,7 @@ services:
   #     - /var/log:/var/log/apache2
   #   labels:
   #     - traefik.enable=true
-  #     - traefik.http.routers.apache_prod.rule=Host(`angular-prod.foodgame.fr`)
+  #     - traefik.http.routers.apache_prod.rule=Host(`fatboar.foodgame.fr`)
   #     - traefik.http.services.apache_prod.loadbalancer.server.port=80
   #     - traefik.http.routers.apache_prod.entrypoints=websecure
   #     - traefik.http.routers.apache_prod.tls.certresolver=myresolver
@@ -215,7 +215,7 @@ services:
 #       - /var/log:/var/log/apache2
 #     labels:
 #       - traefik.enable=true
-#       - traefik.http.routers.apache_prod.rule=Host(`angular-prod.foodgame.fr`)
+#       - traefik.http.routers.apache_prod.rule=Host(`fatboar.foodgame.fr`)
 # #     - traefik.http.routers.apache_prod.rule=Host(`${URLANGULAR}`)
 #       - traefik.http.services.apache_prod.loadbalancer.server.port=80
 #       - traefik.http.routers.apache_prod.entrypoints=websecure

+ 1 - 1
express-server/index.js

@@ -35,7 +35,7 @@ app.use(express.urlencoded({ extended: true }));
 
 // CORS (configuration d'origine conservée)
 app.use(cors({
-  origin: 'https://angular-prod.foodgame.fr',
+  origin: 'https://fatboar.foodgame.fr',
   optionsSuccessStatus: 200
 }));