caddy-retired/README.md

55 lines
821 B
Markdown
Raw Permalink Normal View History

2020-06-30 08:01:17 -07:00
Caddy Web Server
=====
2020-05-17 19:33:35 -07:00
Clone this repo to /opt/caddy or your favorite location
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
## 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
`/opt/caddy/scripts/mkuser`
2020-05-17 19:33:35 -07:00
Fetch or Build and Install a Caddy Binary
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
## git secrets
[see git secret docs](https://git-secret.io/)
pre-commit hook
Reveal any secrets
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
it will ask for passphrase used when creating git secrets for repo.
2020-06-30 08:01:17 -07:00
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
To make a new conf file run
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
which will create conf of the correct ownership/permissions.
you will need to add an
2020-05-17 19:33:35 -07:00
2020-06-30 08:01:17 -07:00
```
```