hotel icon indicating copy to clipboard operation
hotel copied to clipboard

Multiple dots in tld being ignored

Open CaryLandholt opened this issue 7 years ago • 1 comments

Trying to use multiple dots in the tld (e.g. "tld": "foo.bar")

Everything appears to work fine as long as you navigate directly to the correct app url (e.g. http://biz.foo.bar). However, the frontend strips anything after the first dot in the tld.

https://github.com/typicode/hotel/blame/master/src/front/App.vue#L204

Is there a reason to strip out multiple dots?

CaryLandholt avatar May 24 '17 05:05 CaryLandholt

Hi @CaryLandholt,

I must say I haven't thought about using dots in tld actually. And not sure if a tld can have dots.

But you can set the tld to bar, name your app foo and access it using *.foo.bar (wildcard subdomains are supported).

Or you can directly name your app biz.foo.

hotel add <cmd> --name foo

typicode avatar May 25 '17 22:05 typicode