i am new with Saleor and i trying to install and configure it.
What i did:
i followed the https://docs.saleor.io/docs/3.0/developer/installation
so i installed it well.
Then i configured my nginx-ingress on my server and i have something like
DNS -> ingress -> service -> endpoint (docker ip, curl ok)
DNS:
A @ 207.180.225.122
CNAME e-dashboard @
Ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: virtual-host-ingress
namespace: ingress-basic
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/use-regex: "true"
cert-manager.io/cluster-issuer: "letsencrypt-pp"
spec:
tls:
- hosts:
- nextformulainvesting.com
- e-dashboard.nextformulainvesting.com
secretName: aaa
rules:
- host: "nextformulainvesting.com"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: e-frontend-saleor
port:
number: 80
- host: "e-dashboard.nextformulainvesting.com"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: e-dashboard-saleor
port:
number: 80
Dashboard
apiVersion: v1
kind: Service
metadata:
name: e-dashboard-saleor
namespace: ingress-basic
spec:
clusterIP: None
type: ClusterIP
ports:
- name: app-dashboard-seleor
port: 80
protocol: TCP
targetPort: 9000
---
apiVersion: v1
kind: Endpoints
metadata:
name: e-dashboard-saleor
namespace: ingress-basic
subsets:
- addresses:
- ip: 192.168.32.3
ports:
- port: 9000
name: app-dashboard-seleor
protocol: TCP
StoreFront
apiVersion: v1
kind: Service
metadata:
name: e-frontend-saleor
namespace: ingress-basic
spec:
clusterIP: None
type: ClusterIP
ports:
- name: app-frontend-saleor
protocol: TCP
port: 80
targetPort: 3000
---
apiVersion: v1
kind: Endpoints
metadata:
name: e-frontend-saleor
namespace: ingress-basic
subsets:
- addresses:
- ip: 192.168.32.2
ports:
- port: 3000
name: app-frontend-saleor
protocol: TCP
After the installation i changed the common.env adding all hosts:
ALLOWED_HOSTS=localhost,127.0.0.1,207.180.225.122,*,'*.*','nextformulainvesting.com','www.nextformulainvesting.com','*.nextformulainvesting.com','myServerHostname', '*'
But i receive ever the same response from outside (internet):
Invalid Host header.
I tryed more times to build and make it up:
docker-compose down
docker-compose build
docker-compose up -d
But nothing, same result.
The vm have limited ram.