From 1c00073b33b8dac013d9ebec3089f9b4e7843d4f Mon Sep 17 00:00:00 2001 From: meof-coding Date: Mon, 27 Nov 2023 16:01:00 +0700 Subject: [PATCH] update host domain --- .../Payment/Payment.API/Service/Stripe/StripeService.cs | 2 +- .../src/Services/Payment/Payment.API/appsettings.json | 2 +- deploy/k8s/apigw.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SimpleServer/src/Services/Payment/Payment.API/Service/Stripe/StripeService.cs b/SimpleServer/src/Services/Payment/Payment.API/Service/Stripe/StripeService.cs index 2aeb9c2..ab3a95f 100644 --- a/SimpleServer/src/Services/Payment/Payment.API/Service/Stripe/StripeService.cs +++ b/SimpleServer/src/Services/Payment/Payment.API/Service/Stripe/StripeService.cs @@ -23,7 +23,7 @@ public async Task CheckOut(Subcription product, string userEmail) // Get the base URL for the subscription // var request = _httpContextAccessor.HttpContext?.Request ?? throw new Exception("Could not get request to checkout"); // var baseUrl = $"{request.Scheme}://{request.Host}"; - var baseUrl = "https://aks.20.44.235.37.nip.io"; + var baseUrl = "https://aks.technology"; var options = new SessionCreateOptions { // Stripe calls these user defined endpoints diff --git a/SimpleServer/src/Services/Payment/Payment.API/appsettings.json b/SimpleServer/src/Services/Payment/Payment.API/appsettings.json index 03ea10f..9b88592 100644 --- a/SimpleServer/src/Services/Payment/Payment.API/appsettings.json +++ b/SimpleServer/src/Services/Payment/Payment.API/appsettings.json @@ -9,7 +9,7 @@ "ConnectionStrings": { "PaymentDB": "User ID=meofadmin;Password=123456;Server=localhost;Port=5432;Database=PaymentDB" }, - "GrpcUrl": "https://aks.20.44.235.37.nip.io/", + "GrpcUrl": "https://aks.technology", "IdentityUrl": "https://localhost:7096", "ClientUrl": "https://simplenetflix.vercel.app" } diff --git a/deploy/k8s/apigw.yaml b/deploy/k8s/apigw.yaml index 2968643..d68196b 100644 --- a/deploy/k8s/apigw.yaml +++ b/deploy/k8s/apigw.yaml @@ -61,10 +61,10 @@ metadata: spec: tls: - hosts: - - aks.20.44.235.37.nip.io # update IP address here + - aks.technology # update IP address here secretName: app-web-cert rules: - - host: aks.20.44.235.37.nip.io + - host: aks.technology http: paths: - path: /(.*)