1. The problem I’m having:
This is mostly out of curiosity, but I set up the auth portal, got it running, and now I’m trying to understand how the auth portal default template files are served. I know I can specify custom template paths, etc.
I have dug around the entire file system looking for any of the files I see being served on the front end. I feel like I’m missing something. Are these files abstracted (e.g. compressed, etc.) or generated from a go template on-the-fly by caddy?
2. Error messages and/or full log output:
# attempt to find assets dir
sudo find / -type d -name "assets"
#attempt to find portal css file
sudo find / -type f -name "portal.css"
#nothing pertinent in root dir
$ sudo ls -al /usr/share/caddy
. .. index.html
3. Caddy version:
v2.9.1
4. How I installed and ran Caddy:
git / systemd
a. System environment:
b. Command:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
c. Service/unit/compose file:
PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.
d. My complete Caddy config:
*:80 {
redir https://[my-domain].com
root * /usr/share/caddy
file_server
}