try to use caddy file_server with s3

This commit is contained in:
cy 2025-03-29 01:57:18 -04:00
parent dc781b5bc8
commit 7b164cd2b7
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 20 additions and 4 deletions

View file

@ -46,5 +46,20 @@
reverse_proxy localhost:3902
'';
};
"dl.cy7.sh".extraConfig = ''
import common
fs dl
file_server {
browse
}
'';
};
services.caddy.globalConfig = ''
filesystem dl s3 {
bucket caddy-dl
region us-east-1
endpoint https://s3.cy7.sh
}
'';
}