Handle macOS user paths when running on macOS

This updates the usrdir option to look in /Users/ rather than /home/ when running on macOS, as this is where users' home directories live on this OS.

It also updates the config file's description of the option to hopefully be home directory agnostic.
This commit is contained in:
Jessica Stokes
2021-02-20 17:25:48 -08:00
committed by int 80h
parent d68b815be4
commit 2388cbda98
2 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ cgipath = "/path/to/cgi-bin/"
scgi = { "/scgi" = "localhost:4000" }
# cgienv is optional
cgienv = { "GIT_PROJECT_ROOT" = "/srv/git" }
# usrdir is optional. it'll look in /home/usr/public_gemini
# usrdir is optional. it'll look in each user's ~/public_gemini
usrdir = true
# proxy is optional
# path is what comes after the hostname e.g. example.com/path