Skip to content

Publish on your domain

Gitwork publishes through a Cloudflare Tunnel: your computer opens an outgoing connection to Cloudflare, so no ports are opened and no server is rented. The DNS record and HTTPS are set up automatically.

  • Your domain must already be added to Cloudflare: its nameservers at GoDaddy or another provider point to Cloudflare.
  • Using a subdomain such as dev.example.com does not affect the existing site on example.com. Leave Replace an existing DNS record unticked.
  • Cloudflare Tunnel needs outgoing port 7844 (TCP and UDP). Many company networks block it. Use another network then, or ask IT to allow it.

Click Connect Domain in the toolbar:

  1. Download cloudflared (one click).
  2. Log in to Cloudflare in the browser and select your domain.
  3. Choose a subdomain (dev → dev.example.com) or the main domain, set a remote password (at least 10 characters with an uppercase letter, a lowercase letter, a number and a symbol), and click Connect.

This publishes Gitwork itself, so you can open your repositories from any browser. Gitwork reconnects every time it starts.

  1. Select the repository and open Repository → CI/CD….
  2. Choose the Git branch that should be live, and how to start the app: a Terminal command, or the project’s Dockerfile.
  3. Under Publish on your domain, choose the domain, enter a subdomain and the App port your app listens on.
  4. Start it. The dialog shows the terminal output, and the address once it is published. It can take a minute to reach everyone.

After you commit, Restart puts the new version online. You can stop public access to a site while the app keeps running on your computer. Emergency Stop… disconnects all tunnels, or stops both the runs and the tunnels, at once.

  • Password login: the remote password is stored only as a salted hash. After 3 wrong passwords, remote login from that network is locked until the remote password is reset on the computer running Gitwork. Each network is locked separately, so a stranger cannot lock you out from another network.
  • Session: 12 hours, with an HttpOnly, Secure, SameSite=Strict cookie. Log Out (Remote) is in the Repository menu.
  • Not allowed remotely: opening programs on the host computer (VS Code, Beyond Compare, files), VS Code tunnels, exiting Gitwork, and changing domain settings.