try to use caddy file_server with s3
This commit is contained in:
parent
dc781b5bc8
commit
7b164cd2b7
3 changed files with 20 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue