Host your app
A host is a cloud workspace that is always on and serves your app at its own URL, https://<name>.t1s.io. You choose who can open it, add your own domains, and serve either the live workspace or a frozen release.
Use a host for a demo, an internal tool, a side project or a small production app. Your plan sets how many hosts you can have: 1 on PRO, 5 on ULTRA, 10 on ENTERPRISE.
flowchart TD
v([Visitor]) --> url["name.t1s.io or your domain"]
url --> who{"Who can open it"}
who -- "Public" --> mode{"Live or release"}
who -- "Link, password or only me" --> check["Share link, password or sign-in"]
check --> mode
mode -- "Live" --> live["The workspace now"]
mode -- "Release" --> rel["Frozen release machine"]Make a host#
- Declare a public service
In
/workspace/izcode.toml, mark the service visitors should reach withpublic = trueand give it aport. See izcode.toml. - Open the workspace page In the Remote Explorer ▸ Cloud, click the workspace.
- Choose Make host
Enter a host name, or leave it empty to derive one from the workspace name. The URL becomes
https://<name>.t1s.io. - Open it The header shows the URL with Copy URL, Open in browser and a QR code to open it on a phone.
Host names have 3–40 characters: lowercase letters, digits and -, starting with a letter, without -- or a trailing -. Common words such as www, api, admin or docs, and names that contain well-known brand names, are reserved.
A host is never suspended for being idle. If your plan later allows fewer hosts, the newest ones are no longer kept on until you stop hosting another workspace or upgrade.
Live or release#
| Mode | The URL serves | Use it for |
|---|---|---|
| Live | The workspace itself, as it is right now | Development previews; edits reach visitors at once |
| Release | A frozen copy running on its own machine with prod secrets | Anything others rely on; the workspace stays free to change |
Switch on the Releases page; see Releases and rollback.
Who can open it#
On Sharing, port and domains, choose Who can open it:
| Option | Who gets in |
|---|---|
| Public | Anyone on the internet |
| Anyone with the link | People with a share link you create; links last 1 hour, 24 hours, 7 days or 30 days |
| Password | Visitors who enter the password (8–128 characters); they stay signed in for 7 days |
| Only me | You, signed in to IZ Code |
Changing the option or the password ends every share link and password session handed out so far, so IZ Code asks you to confirm. Reset links & passwords does the same without changing the option. Sites that are not public are marked so search engines do not index them.
Public port#
The host serves the port of the service marked public = true. To serve another port, enter it in Public port; Use default goes back to the public service.
Custom domains#
- Add the domain
Under Custom domains, enter a domain you own, such as
app.example.com, and choose Add. - Add the DNS records IZ Code lists the records to add at your DNS provider: one routes traffic, others prove ownership or issue the certificate.
- Wait for Active The domain is checked every few minutes and moves from Pending to Active once the records and the certificate are in place. Last check shows what is still missing.
PRO includes 3 custom domains, ULTRA 10, ENTERPRISE 50. Domains under IZ Code's own domains cannot be added.
Health#
IZ Code checks your host from outside regularly. The header shows Up or Down, uptime over the last 24 hours and the response time. You get a notification when the host goes down. Inside the workspace, service health checks from izcode.toml restart a service that stops answering.
What visitors may see#
| Page | When |
|---|---|
| Waking up… | The workspace behind the URL was not running and is starting; the page reloads by itself |
| Deploying… | A release is starting and there was no room to keep the previous one running meanwhile |
| Payment needed | Your account reached 100 % of its usage limit more than 24 hours ago |
Stop hosting#
Stop hosting on the Overview removes the URL and the always-on promise. The workspace can then be suspended when idle. Its releases are not served any more.
Tips and limits#
- Listen on
0.0.0.0and on thePORTenvironment variable; port 3000 is reserved. - HTTP, WebSocket and server-sent events work. Raw TCP is not published.
- Backups of a host are made daily and on demand on the Backups page. Restoring stops the workspace, replaces its disk and starts it again; the URL does not answer meanwhile. Backups never contain secrets.