wireapp / wire-server-deploy

Code to install/deploy wire-server (on kubernetes)
https://docs.wire.com
GNU Affero General Public License v3.0
94 stars 45 forks source link

What is exacly list domain for wire #118

Open tatdatpham opened 5 years ago

tatdatpham commented 5 years ago

I setup wire server follow your guild. All step finished, no error! Im current set cidraddress in metallb : 10.15.15.30 (for internal demo testing). And i set host to above ip for list domain : In nginx-ingress-service/demo-values.yaml

In wire-server/demo-values.yaml

But when i access https://webapp.mydomain.com, I got error with unknow route for domain :

I try to acces to this url https://bare-https.mydomain.com/self and got default backend - 404

So what is exacly list domain you provide? And with bare-https.mydomain.com (original : bare-https.example.com) What is IP i need to point for domain *bare-.mydomain.com and mydomain.com and api.mydomain.com** ? Is that cidr provide in metallb ? (all domain list on wire-server/demo.values.yaml)

Where can i see list api backend like /swagger-ui/

p/s: And pls update your document Load balancer on bare metal servers. Dont have folder called values/nginx-lb-ingress . I use folder called nginx-ingress-services instead. Is that right?

Thank!

tiago-loureiro commented 5 years ago

Im current set cidraddress in metallb : 10.15.15.30 (for internal demo testing). But when i access https://webapp.mydomain.com, I got error with unknow route for domain : So what is exacly list domain you provide? And withbare-https.mydomain.com (original : bare-https.example.com)

You need to specify all values that you see in https://github.com/wireapp/wire-server-deploy/blob/master/values/nginx-ingress-services/demo-values.example.yaml except for teamSettings (as explained, requires a license with us for managing the admin panel).

What is IP i need to point for domain bare-*.mydomain.com and mydomain.com and api.mydomain.com ? Is that cidr provide in metallb ? (all domain list on wire-server/demo.values.yaml)

Yes, exactly. Also, did you enable TLS on the ingress as well?

Where can i see list api backend like /swagger-ui/

This documentation can be fetched, as mentioned, from swagger. It's a bit cumbersome to get all documentation right now due to multiple swagger versions, etc. We will update documentation on this separately.

p/s: And pls update your document Load balancer on bare metal servers. Dont have folder called values/nginx-lb-ingress . I use folder called nginx-ingress-services instead. Is that right?

Thank you for pointing this out! https://github.com/wireapp/wire-server-deploy/pull/117 changed this, needs updating for sure.

tatdatpham commented 5 years ago

Thank for your answer @tiago-loureiro I have another question. As you mention

You need to specify all values that you see in https://github.com/wireapp/wire-server-deploy/blob/master/values/nginx-ingress-services/demo-values.example.yaml except for teamSettings (as explained, requires a license with us for managing the admin panel).

dns : https, ssl, webapp, fakeS3, teamSettings, accountPages in nginx-ingress-services and backendRest, backendWebsocket, backendDomain, appHost in wire-server demo value . It is same value ? (https = backendRest, ssl = backendWebsocket ... )

Here is my config for wire-server: wire-server/demo-values.example.yaml And nginx ingress config : nginx-ingress-services/demo-values.example.yaml

Have any problem ?

Yes, exactly. Also, did you enable TLS on the ingress as well?

Yep, im ussing wildcard cert for my domain. That work as well.

When i access to this domain https://webapp.mydomain.com and try to create new account. I got error 500 ( ERROR 6 in webapp log) image

Domain : rest.mydomain.vn still working. What is happening? I dont know how to debug and find error . I checked in Nginx ingress controller but have only log http error.

UPDATE : I found problem in smtp. It cant not sent mail . On Brig

 H=10-233-105-103.brig.demo.svc.cluster.local (brig-6bc79dbdb6-gjtcb) [10.233.105.103] F=<email@mydomain.com> rejected RCPT <datpt17@mydomain.com>: relay not permitted
 1805 LOG: lost_incoming_connection MAIN
 1805   unexpected disconnection while reading SMTP command from 10-233-105-103.brig.demo.svc.cluster.local (brig-6bc79dbdb6-gjtcb) [10.233.105.103]

On demo-stmp 1:E,7:request,1:=,32:1edd576991178a360efd7e1e718e92da,129:user error (cannot execute command RCPT "datpt17@mydomain.com", expected reply code 250, but received 550 relay not permitted ),

And next question. Im using Kubernetes (4 node with 2 master - 2 worker) for setting up demo ( using nginx ingress and wire-server demo-values.yaml file). So have any problem if i use prod-values.yaml instead of demo-values.yaml. Currently i saw demo have disabled some feature like account, team (require license), turnStatic, proxy for preview ... . Do you have any document about running prod on kubernetes/

Thank!

tiago-loureiro commented 5 years ago

On demo-stmp 1:E,7:request,1:=,32:1edd576991178a360efd7e1e718e92da,129:user error (cannot execute command RCPT "datpt17@mydomain.com", expected reply code 250, but received 550 relay not permitted ),

It seems like you are not allowed outgoing SMTP, make sure you are able to open up port 25 from your installation (based on https://pastebin.com/nsQ2RFpH I assume that is what you are using).

And next question. Im using Kubernetes (4 node with 2 master - 2 worker) for setting up demo ( using nginx ingress and wire-server demo-values.yaml file) [...]

You can find all our documentation (work in progress) here. Other docs also present here

Note that we are working on a more html friendly approach here and will update it as time permits.