75.2 CSS Public Setup


After installing a solid server (Section 75.1) we can configure a Caddy web server’s reverse proxy to expose the Solid server publicly, for example as https://solid.example.org:

sudo emacs /etc/caddy/Caddyfile

A new entry for the reverse proxy needs to be added. Be sure to change example.org to your own domain name.

example.org {
        root * /var/www/html

solid.example.org {
        reverse_proxy localhost:3000

The new configuration is loaded into the caddy server with:

sudo systemctl reload caddy

To test that it is working login as the solid user and then run the server with the --baseUrl (or -b) option:

sudo -su solid
community-solid-server --baseUrl https://solid.example.org

Visit your domain name like https://solid.example.org to ensure the solid server is publicly accessible.

See Section 75.3 to set up scripts to manage the server and Section 75.4 for systemd configurations to manage the Solid server and ensure it is started after a reboot.

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0