Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
63857671f9
|
|||
|
d008c9fd5a
|
@@ -67,6 +67,7 @@ app.add_middleware(
|
|||||||
"http://localhost:8002",
|
"http://localhost:8002",
|
||||||
"http://172.19.1.11:8002",
|
"http://172.19.1.11:8002",
|
||||||
"http://127.0.0.1:8002",
|
"http://127.0.0.1:8002",
|
||||||
|
"https://homea2.hottis.de"
|
||||||
],
|
],
|
||||||
allow_credentials=True,
|
allow_credentials=True,
|
||||||
allow_methods=["*"],
|
allow_methods=["*"],
|
||||||
|
|||||||
@@ -100,3 +100,26 @@ spec:
|
|||||||
targetPort: 8001
|
targetPort: 8001
|
||||||
name: http
|
name: http
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: api-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- homea2-api.hottis.de
|
||||||
|
secretName: homea2-api-cert
|
||||||
|
rules:
|
||||||
|
- host: homea2-api.hottis.de
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: api
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
Reference in New Issue
Block a user