skyfaller
(Nelson Pavlosky)
May 6, 2020, 5:45pm
1
In the global options block of my Caddyfile, I have the following:
storage file_system {
root /etc/caddy/storage
}
If I didn’t include that in my Caddyfile, where would the storage default to? I don’t see a default mentioned in Modules - Caddy Documentation
The default locations are noted here:
3 Likes
matt
(Matt Holt)
May 6, 2020, 9:30pm
3
To be clear, the storage
parameter of the config changes the data directory.
Also, the docs do link to that information , just not at the file storage module page.
1 Like
gyfer
( )
May 6, 2020, 9:39pm
4
From totally new to caddy , or with some caddy v1 experience,
based on documentation Conventions — Caddy Documentation
there is no clear instruction that tell me
log /var/log/caddy_log.log
should actually be
log {
output file /var/log/caddy_log.log
}
based on the current documentation, and with the info above,
I am guessing below is correct ?
storage file_system {
root $HOME/.local/share/caddy
}
Logs and Caddy’s storage are completely separate concepts. The log documentation is here:
storage
is a global option, as seen here:
The only storage driver that Caddy has built-in at this time (but more can be plugged in) is file_system
, as seen here:
2 Likes
system
(system)
Closed
June 5, 2020, 9:56pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.