Running Foldr on a custom HTTPS port · Self-hosted

Running Foldr on a custom HTTPS port

Running Foldr on a custom HTTPS port

By default Foldr accepts client connections on the standard HTTPS port, TCP 443. You can change this from the appliance console with the set-https-port command. The most common reason to do so is port-forwarding behind a single public IP where TCP 443 is already taken by another service.

Reserved ports

The ports below are reserved by Foldr internally and cannot be used as the client-access HTTPS port:

PortUsed by
25SMTP (Inbox shares)
80HTTP redirect / Let’s Encrypt validation
2082SSH on Foldr v4 to v9
20820SSH on Foldr v10 and later
3306MySQL between cluster nodes
4444, 4567, 4568Cluster replication
5481Update channel
6379, 6380Redis and Redis queue
8080Internal HTTP
8983Search
11211Memcached
30537Foldr Settings (admin) on Foldr v9 and older

Changing the port

Sign into the appliance console as fadmin, either via the hypervisor console or over SSH. The default SSH port is 2082 on v9 and earlier, 20820 on v10 and later.

set-https-port <port>

For example, to use TCP 8443:

set-https-port 8443

The web server restarts automatically. Once it’s back, the web app is reachable at https://your-foldr:8443/.

After the change

A few things to remember once Foldr is on a non-standard port:

  • Bookmarks and the desktop apps need updating. Users with the old URL pinned will get connection refused on next launch.
  • Public links automatically include the port in their generated URL.
  • TLS certificates are unaffected. The certificate is bound to the hostname, not the port.
  • Reverting is the same command with 443: set-https-port 443.

← All articles