puter icon indicating copy to clipboard operation
puter copied to clipboard

allow subdomain

Open Serph91P opened this issue 11 months ago • 4 comments

Would love to selfhost puter but since you cannot specify the subdomain used for the API endpoint and I would already use a subdomain for puter this cannot work.

Should be easy to make the API endpoint be configurable as well as the domain used.

Thanks in advance

Serph91P avatar Dec 15 '24 05:12 Serph91P

As a temporary workaround, putting a static entry in your hosts file seems to work. E.g., if you have a linux docker host named "docky" with ip address 192.168.0.33 and FQDN docky.home.local and you want to access the puter from your Windows workstation, then on the Windows workstation edit c:\windows\system32\drivers\etc\hosts and add something like: 192.168.0.33 api.docky.home.local docky.home.local docky

jwarwick-bry avatar Dec 16 '24 18:12 jwarwick-bry

As a temporary workaround, putting a static entry in your hosts file seems to work. E.g., if you have a linux docker host named "docky" with ip address 192.168.0.33 and FQDN docky.home.local and you want to access the puter from your Windows workstation, then on the Windows workstation edit c:\windows\system32\drivers\etc\hosts and add something like: 192.168.0.33 api.docky.home.local docky.home.local docky

using an reverse proxy with a puter.domain.com but as far as I understand it wants domain.com and api.domain.com. So sadly this does not work. Atleast that is what it says here: https://github.com/HeyPuter/puter/blob/main/doc/self-hosters/instructions.md

Serph91P avatar Dec 18 '24 13:12 Serph91P

You can try experimental_no_subdomain: true although this isn't recommended for production installations, just for local testing.

KernelDeimos avatar Feb 21 '25 23:02 KernelDeimos

experimental_no_subdomain was necessary when using Tailscale VPN, as there is no direct control over subdomains.

Caian avatar Feb 25 '25 20:02 Caian