upated binaries with new route53 dns challenge
improved mkuser and own scripts added a test web and test configuration.giskard
parent
410fac6cbb
commit
9e0603831e
BIN
bin/amd64/caddy
BIN
bin/amd64/caddy
Binary file not shown.
BIN
bin/arm64/caddy
BIN
bin/arm64/caddy
Binary file not shown.
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
(r53) {
|
||||||
|
tls {
|
||||||
|
dns route53 {
|
||||||
|
max_retries 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
(errors) {
|
||||||
|
handle_errors {
|
||||||
|
rewrite * /{http.error.status_code}.html
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
https://testweb.kebler.net {
|
||||||
|
import r53
|
||||||
|
root * /opt/caddy/testweb
|
||||||
|
file_server
|
||||||
|
import errors
|
||||||
|
}
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
HOST=${1:-rrock64}
|
|
||||||
# run as root
|
|
||||||
sudo rsync -chavzP -e 'ssh -p22 -i /home/david/.ssh/privatekeys/sysadmin.kebler.net' /opt/caddy/ root@${HOST}:/opt/caddy
|
|
|
@ -13,8 +13,8 @@ sudo useradd --system \
|
||||||
--comment "Caddy web server" \
|
--comment "Caddy web server" \
|
||||||
caddy
|
caddy
|
||||||
sudo passwd caddy
|
sudo passwd caddy
|
||||||
sudo usermod -a -G caddy sysadmin
|
sudo usermod -a -G caddy $USER
|
||||||
source /opt/caddy/scripts/own
|
sudo chown -R caddy:caddy /opt/caddy
|
||||||
sudo chmod g+rw -R /opt/caddy
|
sudo chmod g+rw -R /opt/caddy
|
||||||
cat /etc/passwd | grep caddy
|
cat /etc/passwd | grep caddy
|
||||||
cat /etc/passwd | grep sysadmin
|
cat /etc/passwd | grep sysadmin
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo chown caddy:sysadmin -R /opt/caddy/conf
|
# reset ownership if need be. Assumes user is in caddy group
|
||||||
sudo chown caddy:sysadmin /opt/caddy
|
sudo chown -R caddy:caddy /opt/caddy
|
||||||
sudo chmod g+rw -R /opt/caddy
|
sudo chmod g+rw -R /opt/caddy
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# TODO needs work
|
|
||||||
SERVER="download.kebler.net"
|
|
||||||
DIR=$(dirname "$(dirname "$(readlink -f "$0")")") || exit
|
|
||||||
echo Getting updated binary
|
|
||||||
wget
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<!DOCTYPE html><html><head>
|
||||||
|
<title>Test Web</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<h1>Page Not Found 404</h1>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||||
|
<meta content="utf-8" http-equiv="encoding">
|
||||||
|
<title>Test Web</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<h1>Test Web</h1>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue