Skip to content

Commit

Permalink
cardshop API switching (keeping previous along) to api.imager domain
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Feb 13, 2024
1 parent d81aaa6 commit e30ca20
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardshop/api/api-configs.cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
namespace: cardshop
data:
# previous hosting (sloppy) required different internal-usage URL
CARDSHOP_API_INTERNAL_URL: "https://api.cardshop.hotspot.kiwix.org"
CARDSHOP_API_URL: "https://api.cardshop.hotspot.kiwix.org"
CARDSHOP_API_INTERNAL_URL: "https://api.imager.kiwix.org"
CARDSHOP_API_URL: "https://api.imager.kiwix.org"
# url to the manager API to create user accountd
MANAGER_API_URL: "https://cardshop.hotspot.kiwix.org/api"
# public url to display link to
Expand All @@ -19,7 +19,7 @@ data:
DOWNLOAD_WAREHOUSE_UPLOAD_URI: "s3://s3.us-west-1.wasabisys.com/?bucketName=org-kiwix-hotspot-cardshop-download"
# mail sending via mailgun
MAILGUN_API_URL: "https://api.mailgun.net/v3/cardshop.hotspot.kiwix.org"
MAIL_FROM: "Hotspot Cardshop <hotspot@kiwix.org>"
MAIL_FROM: "Kiwix Imager <imager@kiwix.org>"
# Stripe shop configuration
STRIPE_PUBLIC_API_KEY: "pk_live_GEcXcJPSS1WkxsOtEQceoIWo"
STRIPE_METHOD_ACCESS1M: "payment"
Expand Down
13 changes: 13 additions & 0 deletions cardshop/api/api.imager.kiwix.org.certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: api-imager-kiwix-org
namespace: cardshop
spec:
secretName: api-imager-kiwix-org-tls
issuerRef:
kind: ClusterIssuer
name: letsencrypt-prod
commonName: api.imager.kiwix.org
dnsNames:
- api.imager.kiwix.org
13 changes: 13 additions & 0 deletions cardshop/api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ spec:
- hosts:
- api.cardshop.hotspot.kiwix.org
secretName: api-cardshop-hotspot-kiwix-org-tls
- hosts:
- api.imager.kiwix.org
secretName: api-imager-kiwix-org-tls
rules:
- host: api.cardshop.hotspot.kiwix.org
http:
Expand All @@ -72,3 +75,13 @@ spec:
name: api-service
port:
number: 80
- host: api.imager.kiwix.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: api-service
port:
number: 80

0 comments on commit e30ca20

Please sign in to comment.