Serving images comfortably in WriteFreely using NGINX and Nextcloud
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

Hope this helps someone else also.
Keep on hacking!