Domain and HTTPS
Self-hosting
People should always reach Venolio over HTTPS. You have two ways to do it:
- Automatic HTTPS: the built-in proxy (Caddy) obtains and renews a certificate for your domain itself. The simplest choice for a server reachable from the internet.
- Your own proxy in front: your reverse proxy, load balancer or tunnel handles HTTPS and passes plain HTTP to the installation.
Either way, set PUBLIC_URL to the https:// address people open and SECURE_COOKIES=true.
Automatic HTTPS
-
Point your domain’s DNS record (A or AAAA) at the server, for example
venolio.example.com. -
Open TCP ports 80 and 443 in the server’s firewall. The certificate authority checks that you control the domain by connecting to the server.
-
In
.env, set:PUBLIC_URL=https://venolio.example.com SITE_ADDRESS=venolio.example.com SECURE_COOKIES=true HTTP_BIND=0.0.0.0 HTTP_PORT=80 HTTPS_BIND=0.0.0.0 HTTPS_PORT=443 -
Run
docker compose up -d.
Caddy requests the certificate from Let’s Encrypt (or its fallback, ZeroSSL) on the first start
and renews it on its own. Plain HTTP requests are redirected to HTTPS. The certificates and
Caddy’s account key are kept in the caddy_data volume, so a restart does not request them
again. They are not part of a Venolio backup; Caddy obtains new ones if they are lost.
If the certificate is not issued, check the proxy’s log with docker compose logs proxy: usually
the DNS record does not point at the server yet, or port 80 is blocked.
Your own reverse proxy in front
Keep the built-in proxy on plain HTTP and local to the machine, and let your proxy forward to it:
PUBLIC_URL=https://venolio.example.com
SITE_ADDRESS=:80
SECURE_COOKIES=true
HTTP_BIND=127.0.0.1
HTTP_PORT=8080
Your proxy then forwards every path of https://venolio.example.com to http://127.0.0.1:8080.
If it runs on another machine, publish the port on an address that machine can reach, and allow
only that machine in the firewall.
What your proxy must do:
- Forward everything, including
/api/and/.well-known/oauth-…(AI apps use those to sign in). The built-in proxy decides what goes to the app and what is the web app. - Pass WebSockets (
UpgradeandConnectionheaders). Live collaboration on pages needs them. - Keep the host: people must open exactly the address in
PUBLIC_URL. - Allow large enough requests. Files larger than 8 MiB are uploaded in parts of 8 MiB, so a body limit of a little over 8 MiB is enough for the web editor and the apps. A few routes still send a whole file in one request (attaching a file through the API or an AI app’s upload stream); allow your largest file size if people use those.
- Allow long requests: uploads and exports can take minutes on a slow connection.
Venolio does not trust forwarded identity headers: a proxy cannot sign anyone in by adding a header. People always sign in with Venolio’s own sign-in or single sign-on.
Example for nginx:
server {
listen 443 ssl;
server_name venolio.example.com;
# ssl_certificate and ssl_certificate_key as for your other sites
client_max_body_size 16m;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
}
Only on a local machine
The defaults (PUBLIC_URL=http://localhost:8080, local binds, SECURE_COOKIES=false) are for
trying Venolio on your own computer. Do not use them for a server other people reach.
Changing the address later
- Change
PUBLIC_URL(andSITE_ADDRESSwith automatic HTTPS) in.env. - Run
docker compose up -d. - Update the redirect addresses registered at your sign-in providers and integrations (see Register sign-in apps).
- Invite links made before the change point to the old address; make new ones.
About this part of Venolio: Your server, your data, your rules
Checked against the app on . The same help is built into the Venolio apps and works offline. Something wrong or missing? Tell us.