~kris/9p

krisyotam.net

ref: 6eae62a63a4ed65ce178042245304bb652ec8e52 krisyotam.net/bin/contrib/rc-httpd/handlers/authorize -rwxr-xr-x 134 bytes
6eae62a6 — Kris Yotam ci: deploy Werc site to Vercel from SourceHut a month ago
                                                                                
1
2
3
4
5
6
#!/bin/rc
if(~ $REMOTE_USER ''){
	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
	error 401
	exit
}