6
57
Fork
You've already forked smolfedi
5

Caddy install instructions? #8

Closed
opened 2026年04月18日 05:41:48 +02:00 by technomancy · 2 comments

The readme explains how to install it with nginx, but it'd be nice to have some help for us caddy users too.

The readme explains how to install it with nginx, but it'd be nice to have some help for us caddy users too.
Contributor
Copy link

Hi @technomancy

Here's a suggested Caddyfile entry

yourdomain.com {
 @blocked {
 path /data/* /sessions/*
 }
 respond @blocked 403
 root * /var/www/html/smolfedi
 php_fastcgi unix//run/php/php8.1-fpm.sock
 file_server
 encode gzip zstd
}

The yourdomain.com shold be your own domain name for Smolfedi and the root entry set to the folder you have the app in

php8.1-fpm.sock will depend on what version of php you are using

I've tested this with Caddy v.2.10

Hi @technomancy Here's a suggested Caddyfile entry ``` yourdomain.com { @blocked { path /data/* /sessions/* } respond @blocked 403 root * /var/www/html/smolfedi php_fastcgi unix//run/php/php8.1-fpm.sock file_server encode gzip zstd } ``` The `yourdomain.com` shold be your own domain name for Smolfedi and the `root` entry set to the folder you have the app in `php8.1-fpm.sock` will depend on what version of php you are using I've tested this with Caddy v.2.10

Thanks!

Thanks!
Sign in to join this conversation.
No Branch/Tag specified
main
v1.2.8
v1.2.7
v1.2.5
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.0
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adele/smolfedi#8
Reference in a new issue
adele/smolfedi
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?