<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>smarthome &amp;mdash; Kemal&#39;s Braindump</title>
    <link>https://write.moxnet.eu/tag:smarthome</link>
    <description>Rambling thoughts and reflections</description>
    <pubDate>Thu, 23 Apr 2026 15:14:23 +0200</pubDate>
    <item>
      <title>Serving images comfortably in WriteFreely using NGINX and Nextcloud</title>
      <link>https://write.moxnet.eu/serving-images-comfortably-in-writefreely-using-nginx-and-nextcloud</link>
      <description>&lt;![CDATA[smarthome&#xA;&#xA;WriteFreely, which I self-host for this blog, cannot natively serve images. It is designed so that you combine it with a photo serving platform like e.g. snap.as.&#xA;&#xA;I found the solution for this problem by using NGINX and Nextcloud:&#xA;&#xA;I use a Nextcloud folder to upload the images I want to use.&#xA;Then using NGINX reverse proxy I expose that folder.&#xA;&#xA;  # Serve images                                                                        &#xA;        location /images/ {                                                                   &#xA;                 alias /home/ncdata/Kemal/files/Public/;                                     &#xA;                 autoindex off;                                                               &#xA;                 accesslog off;                                                              &#xA;                 expires 30d;                                                                 &#xA;                 add_header Cache-Control &#34;public&#34;;                                           &#xA;                 } &#xA;After that I can link images in the blog posts using this&#xA;&#xA;Name&#xA;&#xA;Hope this helps someone else also.&#xA;&#xA;Keep on hacking!&#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://write.moxnet.eu/tag:smarthome" class="hashtag"><span>#</span><span class="p-category">smarthome</span></a></p>

<p>WriteFreely, which I self-host for this blog, cannot natively serve images. It is designed so that you combine it with a photo serving platform like e.g. <a href="https://snap.as/">snap.as</a>.</p>

<p>I found the solution for this problem by using NGINX and Nextcloud:</p>
<ul><li>I use a Nextcloud folder to upload the images I want to use.</li>
<li>Then using NGINX reverse proxy I expose that folder.</li></ul>

<pre><code>  # Serve images                                                                        
        location /images/ {                                                                   
                 alias /home/nc_data/Kemal/files/Public/;                                     
                 autoindex off;                                                               
                 access_log off;                                                              
                 expires 30d;                                                                 
                 add_header Cache-Control &#34;public&#34;;                                           
                 } 
</code></pre>
<ul><li>After that I can link images in the blog posts using this</li></ul>

<pre><code>![Name](https://write.moxnet.eu/images/Name.jpg)
</code></pre>

<p>Hope this helps someone else also.</p>

<p>Keep on hacking!</p>
]]></content:encoded>
      <guid>https://write.moxnet.eu/serving-images-comfortably-in-writefreely-using-nginx-and-nextcloud</guid>
      <pubDate>Wed, 22 Apr 2026 15:43:34 +0200</pubDate>
    </item>
  </channel>
</rss>