Caddy Caddyfile deployment example #2580
WebFreak001
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nominatim with Caddy
Installing the required packages
You need to install a PHP FastCGI server such as php-fpm to use with caddy.
Follow caddy installation instructions: https://caddyserver.com/docs/install
On Ubuntu/Debian install php-fpm with:
Configure php-fpm with Caddy
By default php-fpm listens on a network socket. If you want it to listen to a
Unix socket instead, change the pool configuration
(
/etc/php/<php version>/fpm/pool.d/www.conf
) as follows:Since caddy by default runs as user
caddy
and not aswww-root
this needsto be adjusted in the config as above accordingly.
Caddyfile
Example Caddyfile:
Extra config example if you want to add a custom homepage (index.html) in a different folder or to enable logging:
I've got this running on https://nominatim.webfreak.org (feel free to use my instance for non-commercial stuff, though I'm currently fighting with the update procedure and the data is thus a little outdated)
Beta Was this translation helpful? Give feedback.
All reactions