Caddy Authentication Portal base files

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
}

5. Links to relevant resources:

Which auth portal? Your config doesn’t show the use of any plugin; neither do your answers on the template show the use of any plugins.

Pardon, the standard caddy sec auth portal

Installed with

sudo caddy add-package github.com/greenpau/caddy-security

Head snip of config

	security {
		local identity store localdb {
			realm local
			path /var/lib/caddy/.local/users/users.json
			user user1 {
				name user1 
				email user1 @abc.com
				password ...
				roles authp/admin authp/user
			}
			user user2 {
				name user2 
				email user2 @abc.com
				password ...
				roles authp/admin authp/user
			}
			user user3 {
				name user3 
				email user3 @abc.com
				password ...
				roles authp/admin authp/user
			}
....

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.