File Upload Not Working (Pixelfed)

1. The problem I’m having:

I’m using caddy for my pixelfed instance. So far, everything is working except file uploading. This is the first time I’m using Caddy.

If I select an image it shows the upload status. When the upload is complete it does nothing. I’ve posted the issue on Pixelfed Matrix Channel too. But got no response so far.

2. Error messages and/or full log output:

Here’s what I see in my browser console

3. Caddy version:

v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=

4. How I installed and ran Caddy:

a. System environment:

OS : Ubuntu 22.04
Using Systemd

d. My complete Caddy config: {
        # Set this path to your site's directory.
        root * /var/www/html/public

        header {
                X-Frame-Options "SAMEORIGIN"
                X-XSS-Protection "1; mode=block"
                X-Content-Type-Options "nosniff"

        php_fastcgi unix//run/php/php8.1-fpm.sock
        # Enable the static file server.

        # Another common task is to set up a reverse proxy:
        # reverse_proxy localhost:8080

        # Or serve a PHP site through php-fpm:
        # php_fastcgi localhost:9000
} {
        reverse_proxy /nixone/* :7777 {
        header_up X-Real-IP {remote}
        header_up X-Forwarded-For {remote}
        header_up X-Forwarded-Proto {scheme}
        #header_up Host {}

5. Links to relevant resources:

This was due to wrong dir permissions. Caddy is working smoothly :ok_hand:… Lots of love to those people who are working hard to build FOSS Caddy !

1 Like