NfNitLoop / feoblog

A distributed, cryptographically-verifiable blog / social network
Other
71 stars 4 forks source link

User-configurable styles/themes #12

Open NfNitLoop opened 3 years ago

NfNitLoop commented 3 years ago

Out of the box, FeoBlog uses its embedded styles.css and client.css files to render the plain HTML view and client view.

Users will probably want a way to provide their own styles for their own sites.

NfNitLoop commented 3 years ago

In the meantime, you can work around this if you're serving FeoBlog through a reverse proxy.

For example, here's how I have mine configured in Apache2:

<VirtualHost *:443>
    ServerName blog.nfnitloop.com

    DocumentRoot /var/www/nfnitloop.com/blog/docroot

    # [not included: some irrelevant bits]

    # Proxy all traffic to the local server:
    ProxyPass "/" "http://127.0.0.1:8080/"
</VirtualHost>

If I wanted a different style, I could add an option to tell ProxyPass to not proxy style.css and instead serve a local one:

ProxyPass "/style.css" "!"