Files
linux-cloud-router/docs/sites.md
T

2.8 KiB

Web sites

Static web sites that Caddy serves on the server, each from its own folder, /var/lib/linux-manager/sites/<name>. The files of a site are on the Files tab, and the name server of their domain on the DNS page.

Settings

  • State: whether the sites are served.
  • Largest upload: the largest file or zip archive the Files tab and the server's API take.
  • WebDAV: whether the folders are served over WebDAV, and its URL with a copy icon. WebDAV is switched on the System tab, which installs rclone.

Settings edits the state, the largest upload and the WebDAV port.

Columns

  • URLs: the addresses of the site, one per host name; a site without host names answers any name on its port.
  • Port and Listen: the TCP port, and the interfaces its firewall opens: internal, external or both.
  • TLS: None (plain HTTP), ACME, from the CA set on the Server tab of the Certificates page, an issuing CA of the same page, or a certificate and key given with the site.
  • Editors: the group whose members may change the files besides the admins.
  • DNS: who serves the records of the host names. User managed: a DNS provider outside the router. Router managed: the server's name server gives each host name an A or AAAA record in its domain on the DNS page, with the server's Public IP (the Public IP address of the DNS settings), Internal interface IP or External interface IP. A host name in none of the server's domains gets no record.

A host name may be the server's FQDN, on a port of the site's own, such as 443, which the server's own services leave free. Such a site is User managed: the record of the server's FQDN stays with the DNS of its domain.

Actions

  • Add and Edit: the settings of a site; the name is fixed once added.
  • Files opens the site on the Files tab.
  • Disable, Enable, and Remove, which keeps the folder unless asked to remove it.

Rules

  • The server's own ports, such as 22, 7080, 7081, 7443, 7444 and 7445, and the loopback ports of its services, 7090, 7091 and 9474, cannot be taken by a site.
  • Sites sharing a port need host names of their own, the same Listen and the same kind of TLS.
  • ACME with a public CA needs host names that resolve to the server from the internet, and port 80.
  • A certificate and key must belong together and name the host names.
  • An issuing CA's certificates are trusted by browsers that trust the server's root CA.

WebDAV

With WebDAV on, a WebDAV client signs in at the WebDAV URL with a user name and password of the router, followed by the TOTP code for an enrolled user. Admins see a folder for every site, other users the folders of the sites whose editors group they are members of. An upload reaches the site a few seconds after it is written.