caddy-retired/README.md

45 lines
692 B
Markdown
Raw Normal View History

2020-06-30 08:01:17 -07:00
Caddy Web Server
=====
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
Clone this repo to /opt/caddy
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
`git clone https://git.kebler.net/kebler.net/caddy.git /opt/caddy`
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
## Install
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
run these scripts
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
`/opt/caddy/scripts/mkuser && /opt/caddy/scripts/own`
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
Set the architecture binary (either amd64 or arm64)
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
`/opt/caddy/scripts/arch <amd64|arch64>`
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
Reveal the aws credentials
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
open terminal on giskard in mounted caddy directory.
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
Run
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
`git secret reveal`
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
it will ask for passphrase. See entry in keepass `kebler.net repo secret keys`
if can't mount the directory then will have to move a copy of the keyring in `~/.gnupg` to remote machine
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
## conf
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
To make a new conf file to edit
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
`/opt/caddy/scripts/newconf`
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
```
```