Braindump

selfhosting

#homelab #selfhosting

One of my big interests is self-hosting. The actual implementation of the homelab changes and evolves over the years, but since I started 15 years ago, I never thought about dropping it. I have diverse reasons for that, but privacy and control over our family data remain the most prominent ones.

Read more...

#smarthome #selfhosting

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.

I found the solution for this problem by using NGINX and Nextcloud:

  • I use a Nextcloud folder to upload the images I want to use.
  • Then using NGINX reverse proxy I expose that folder.
  # Serve images                                                                        
        location /images/ {                                                                   
                 alias /home/nc_data/Kemal/files/Public/;                                     
                 autoindex off;                                                               
                 access_log off;                                                              
                 expires 30d;                                                                 
                 add_header Cache-Control "public";                                           
                 } 
  • After that I can link images in the blog posts using this
![Name](https://write.moxnet.eu/images/Name.jpg)

Hope this helps someone else also.

Keep on hacking!