2025-05-26 19:03:34 +02:00
|
|
|
osm-commerces.cipherbliss.com {
|
2025-11-19 22:10:15 +01:00
|
|
|
root * /home/poule/encrypted/osm-commerce-sf/public
|
2025-05-26 19:03:34 +02:00
|
|
|
|
|
|
|
|
# serve files directly if they can be found (e.g. CSS or JS files in public/)
|
|
|
|
|
encode zstd gzip
|
|
|
|
|
file_server
|
|
|
|
|
|
|
|
|
|
# otherwise, use PHP-FPM (replace "unix//var/..." with "127.0.0.1:9000" when using TCP)
|
|
|
|
|
php_fastcgi unix//var/run/php/php8.4-fpm.sock {
|
|
|
|
|
# only fall back to root index.php aka front controller.
|
|
|
|
|
try_files {path} index.php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
|
log {
|
|
|
|
|
output file /var/log/caddy/access-osm-commerce-sf.log
|
|
|
|
|
format console
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@phpFile {
|
|
|
|
|
path *.php*
|
|
|
|
|
}
|
|
|
|
|
error @phpFile "Not found" 404
|
2025-11-19 22:10:15 +01:00
|
|
|
}
|