Publish¶
Publish gives a service that you already run its own public address with HTTPS, for example https://api-docs-hosting.igdisco.com. Your service keeps running where it is; Publish passes visitors on to it. Visitors reach it through Cloudflare.
Warning
A published service is open to everyone on the internet. Publish does not add a password in front of it. Publish only what anyone may see, and make sure your service has its own login if it needs one.
Warning
Do not publish private files. Cloudflare can keep files such as images, scripts, style sheets and PDFs for a while, even when your service asks for a login, and can still serve them after you change, disable or remove the service.
Before you start¶
- Your service runs on an instance, a container or a load balancer of the project, on
PublicNetwork, or behind a floating IP that is attached. - It answers plain HTTP. A service that only answers HTTPS cannot be published yet.
- Its security group allows the port. Note the address range shown under the Address field of the Publish Service form, then open Network > Security Groups, open the group, go to its Rules tab and use Create Rule: Custom TCP Rule, Ingress, your port, with that range as the Remote IP Prefix. See Security groups.
Publish a service¶
- Open Publish > Services.
- Choose Publish Service.
- In Address, choose the address of your service. The list shows the addresses of your project with the name of the instance, container or load balancer.
- In Port, enter the port your service listens on, for example
80or8080. - In Name, enter a name if you want one. Use 3 to 40 lowercase letters, digits and hyphens: start with a letter, end with a letter or digit, and do not put two hyphens together. Some names are reserved. If you leave it empty, a name is made for you.
- Tick I understand that everyone on the internet will be able to open it.
- Choose OK.
The message shows the public address, https://NAME-hosting.igdisco.com. The new service shows Setting up in the list. When the status changes to Live, usually within a minute, the address opens. The list refreshes by itself.
If the message also says that nothing answered, check that your service runs and that the security group allows the port.
See your services¶
Publish > Services lists what the current project has published:
| Column | Meaning |
|---|---|
| Public Address | The address visitors use |
| Target | Where visitors are passed on to |
| Status | Live (green dot), Setting up (blue), Disabled (grey), or Stopped with the reason (red) |
Live means the public address is ready. It does not mean that your service answers: if a service is Live but visitors see an error page, check that it runs and that the security group allows the port from the range shown in the form.
A service is Stopped when its address no longer belongs to your project, for example after the instance was deleted or the floating IP was released. Use Edit to give it another address, or remove it. If the reason says the name is already used, remove the service and publish it under another name.
Change the target of a service¶
Use Edit when your service has moved to another address or port. The public address stays the same.
- Open Publish > Services.
- In the row of the service, choose Edit.
- Choose the new Address and Port.
- Tick I understand that everyone on the internet will be able to open it.
- Choose OK.
The service shows Setting up, then Live within a minute. The public address can show an error for a few seconds while the target changes. A Disabled service stays disabled.
Disable and enable a service¶
Disable a service to take its public address off for a while.
- Open Publish > Services.
- In the row of the service, choose More > Disable, then Confirm.
Within a minute the public address shows an error page (503). The name stays yours, and your service itself keeps running.
To bring it back, choose More > Enable, then Confirm. The status shows Setting up, then Live within a minute. Enabling is refused if the address no longer belongs to your project; use Edit to choose another one.
Remove a service¶
- Open Publish > Services.
- In the row of the service, choose More > Remove, then Confirm.
Within a minute the public address no longer shows your service, and the name becomes free for anyone. Your service itself keeps running.
Limits¶
Important
A project can publish 10 services, disabled ones included. The ports used for SSH, mail (port 25), databases and caches cannot be published.
Members of a project can publish, edit, disable, enable and remove services. A user with the reader role can only look.
Visitors pass through Cloudflare, so these apply to every published service:
- One upload can be at most 100 MB.
- Your service must start to answer within about 50 seconds, and a connection with no data for that long is closed.
- Your service does not see the visitor's own IP address as the connection's address. Do not use visitor addresses to allow or block people; use a login.