How I should configure my Caddyfile to store my files on google cloud storage.
Here is my current configuration
{$IP_HOST}
handle /uploads/* {
root /uploads/* /uploads/
uri strip_prefix /uploads
file_server
}
@back_requests {
path_regexp ^/(api|auth|web_api|admin_api|hooks)/(.*)$
}
reverse_proxy @back_requests web:4000 {
header_up Host {http.reverse_proxy.upstream.hostport}
}
reverse_proxy front:3000
Your question is unclear. What do you mean? Caddy doesn’t handle uploads itself.
Instead of saving the files on my machine in the /uploads/ folder, I want to store them in Cloud Storage.
Caddy doesn’t handle uploading of files.
Caddy’s file_server can only serve static files from the filesystem at this time.
You could set up a virtual filesystem that maps to cloud storage maybe, but that’s out of scope of Caddy, and not something we can help you with on these forums.