How can i handle multiple domains dynamic?
gsiniguez
PROOP

2 years ago

I need to register domain to my proxy service when a tenant register and configure their domain

63 Replies

brody
EMPLOYEE

2 years ago

You would want to utilize wildcard domains -


gsiniguez
PROOP

2 years ago

Im use wildcard for tenants that not have domains. Example tenant.myweb.com. But how can i handle for a custom domain that tenant have dynamically or by code for example tenantdomain.com -> myProxyService


brody
EMPLOYEE

2 years ago

I would recommend doing that through cloudflare with a cloudflare tunnel


gsiniguez
PROOP

2 years ago

ok thx i never use cloudflare im going to learn


gsiniguez
PROOP

2 years ago

@Brody Hi brody sorry the mention, i created a tunner and deploy the cloudflare tunnel connection on railway "cf-tunnel" but i cant connect over private networks to service


gsiniguez
PROOP

2 years ago

i configure through http


brody
EMPLOYEE

2 years ago

your services will need to listen on ipv6 and a fixed port


brody
EMPLOYEE

2 years ago

the private network is ipv6 only


gsiniguez
PROOP

2 years ago

yes my proxy use :: and port 3000


gsiniguez
PROOP

2 years ago

1225954338568933400


gsiniguez
PROOP

2 years ago

cloudflare config


brody
EMPLOYEE

2 years ago

whats with the underscore


gsiniguez
PROOP

2 years ago

1225954402502705200


gsiniguez
PROOP

2 years ago

internal service


gsiniguez
PROOP

2 years ago

the name of service xd


brody
EMPLOYEE

2 years ago

what kind of proxy app?


gsiniguez
PROOP

2 years ago

simple http redirect to anothers service by certain conditions


gsiniguez
PROOP

2 years ago

like a tenant template or admin etc


brody
EMPLOYEE

2 years ago

more specifically?


brody
EMPLOYEE

2 years ago

something you coded? or nginx?


gsiniguez
PROOP

2 years ago

by subdomain or custom domain redirect to the service of tenant


gsiniguez
PROOP

2 years ago

coded


gsiniguez
PROOP

2 years ago

in express


gsiniguez
PROOP

2 years ago

js


brody
EMPLOYEE

2 years ago

show me the app.listen


gsiniguez
PROOP

2 years ago

logs

1225954951474446300


gsiniguez
PROOP

2 years ago

1225955006272770000


brody
EMPLOYEE

2 years ago

is the cloudflare tunnel is the same project?


gsiniguez
PROOP

2 years ago

1225955180902879200


gsiniguez
PROOP

2 years ago

yes


gsiniguez
PROOP

2 years ago

some logs

1225955312524329200


brody
EMPLOYEE

2 years ago

its trying to dial port 80


gsiniguez
PROOP

2 years ago

how can i change port or i need to set host on port 80?


brody
EMPLOYEE

2 years ago

save this config


gsiniguez
PROOP

2 years ago

after save log

1225955847067271200


brody
EMPLOYEE

2 years ago

that log isnt what we would want to be looking at


gsiniguez
PROOP

2 years ago

what can i do?


brody
EMPLOYEE

2 years ago

send all the logs


gsiniguez
PROOP

2 years ago

1225956447309791200


brody
EMPLOYEE

2 years ago

okay try accessing it again


gsiniguez
PROOP

2 years ago

1225956661907423200


brody
EMPLOYEE

2 years ago

and what do the logs say now


gsiniguez
PROOP

2 years ago

nothing changes


gsiniguez
PROOP

2 years ago

1225956963398062000


brody
EMPLOYEE

2 years ago

scroll down?


gsiniguez
PROOP

2 years ago

i reload site and nothing


brody
EMPLOYEE

2 years ago

remove the underscore from everything to do with the proxy service


gsiniguez
PROOP

2 years ago

some i saw i dont create a private network on tunnel


gsiniguez
PROOP

2 years ago

that can be a problem?


gsiniguez
PROOP

2 years ago

1225958228819447800


gsiniguez
PROOP

2 years ago

i said nothing


gsiniguez
PROOP

2 years ago

underscore removed and now works


brody
EMPLOYEE

2 years ago

awsome


gsiniguez
PROOP

2 years ago

😂


brody
EMPLOYEE

2 years ago

lessen learnt, dont give things strange names


gsiniguez
PROOP

2 years ago

thats name its only for get on top of monorepo, my bad!


gsiniguez
PROOP

2 years ago

thx again brody!


brody
EMPLOYEE

2 years ago

no problem


gsiniguez
PROOP

2 years ago

for wildcard in cloudflare i need to do something?


brody
EMPLOYEE

2 years ago

i wouldnt know how thats done in cloudflare


gsiniguez
PROOP

2 years ago

i create a cname manually with * and works


gsiniguez
PROOP

2 years ago

at leats something i can do and works xd


brody
EMPLOYEE

2 years ago

awsome


Loading...