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.
Before you start
Section titled “Before you start”- 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.comdoes not affect the existing site onexample.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.
Connect your domain
Section titled “Connect your domain”Click Connect Domain in the toolbar:
- Download cloudflared (one click).
- Log in to Cloudflare in the browser and select your domain.
- 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.
Run and publish an app
Section titled “Run and publish an app”- Select the repository and open Repository → CI/CD….
- Choose the Git branch that should be live, and how to start the app: a Terminal command, or the project’s Dockerfile.
- Under Publish on your domain, choose the domain, enter a subdomain and the App port your app listens on.
- 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.
Security for remote visitors
Section titled “Security for remote visitors”- 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.
