This commit is contained in:
commit
9275dedc9e
11 changed files with 202 additions and 0 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Generated files by hugo
|
||||
/public/
|
||||
/resources/_gen/
|
||||
/assets/jsconfig.json
|
||||
hugo_stats.json
|
||||
|
||||
# Executable may be added to repository
|
||||
hugo.exe
|
||||
hugo.darwin
|
||||
hugo.linux
|
||||
|
||||
# Temporary lock file while building
|
||||
/.hugo_build.lock
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "themes/hugo-book"]
|
||||
path = themes/hugo-book
|
||||
url = git@code.lila.network:adoralaura/hugo-book-theme.git
|
24
.woodpecker/deploy-cloudflare.yml
Normal file
24
.woodpecker/deploy-cloudflare.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
steps:
|
||||
build:
|
||||
image: golang:1.22-bookworm
|
||||
environment:
|
||||
- HUGO_VERSION=0.128.1
|
||||
- TZ=Europe/Berlin
|
||||
when:
|
||||
- event: push
|
||||
branch: [main, staging]
|
||||
commands:
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_$${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_$${HUGO_VERSION}_linux-amd64.deb
|
||||
- hugo --minify --destination ./public
|
||||
|
||||
deploy-cloudflare-production:
|
||||
image: node:22-bookworm
|
||||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
secrets:
|
||||
- CLOUDFLARE_ACCOUNT_ID
|
||||
- CLOUDFLARE_API_TOKEN
|
||||
commands:
|
||||
- npm install wrangler --save-dev
|
||||
- npx wrangler pages deploy ./public --project-name certwarden-deploy-docs
|
9
LICENSE
Normal file
9
LICENSE
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright 2024 Adora Laura Kalb <dev@lauka.net>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# certwarden-deploy Documentation
|
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
6
config.toml
Normal file
6
config.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
baseURL = 'https://certwarden-deploy.adora.codes/'
|
||||
languageCode = 'en-us'
|
||||
title = 'certwarden-deploy'
|
||||
|
||||
theme = 'hugo-book'
|
||||
|
89
content/_index.md
Normal file
89
content/_index.md
Normal file
|
@ -0,0 +1,89 @@
|
|||
---
|
||||
title: Introduction
|
||||
type: docs
|
||||
---
|
||||
|
||||
## CertWarden
|
||||
|
||||
[CertWarden](https://www.certwarden.com/) is a self-hosted Centralized ACME Certificate Management platform. With it you can manage and aquire Let's Encrypt certificates.
|
||||
|
||||
However, to deploy them to your hosts, for now there only was a docker client, and that was too bloated for me.
|
||||
|
||||
So I built `certwarden-deploy`, a dependency-less binary that can run via crontab/systemd timers and that can fetch new certificates and run actions after new certificates got rolled out.
|
||||
|
||||
## Quick Start
|
||||
|
||||
Installation of the required CertWarden instance is out of scope of this documentation. For detailed instructions regarding CertWarden, please visit [it's documentation](https://www.certwarden.com/docs/introduction/)
|
||||
|
||||
|
||||
To quickly get started with `certwarden-deploy`, just download the binary...
|
||||
|
||||
```shell
|
||||
# this downloads certwarden-deploy version 0.1.1
|
||||
# to /usr/local/bin/certwarden-deploy
|
||||
sudo wget https://code.lila.network/adoralaura/certwarden-deploy/releases/download/0.1.1/certwarden-deploy-0.1.1-linux-amd64 -O /usr/local/bin/certwarden-deploy
|
||||
|
||||
sudo chmod +x /usr/local/bin/certwarden-deploy
|
||||
```
|
||||
|
||||
... fill out the config file...
|
||||
```shell
|
||||
vi /etc/certwarden-deploy/config.yaml
|
||||
```
|
||||
```yaml
|
||||
# Base URL of the CertWarden instance
|
||||
# required
|
||||
base_url: "https://certwarden.example.com"
|
||||
|
||||
# Set this to true if your CertWarden instance does not have a publicly trusted
|
||||
# TLS certificate (e.g. it has a self signed one)
|
||||
# default is false
|
||||
disable_certificate_validation: false
|
||||
|
||||
# define all managed certificates here
|
||||
certificates:
|
||||
|
||||
# name is a unique identifier that must start and end with an alphanumeric character,
|
||||
# and can contain the following characters: a-zA-Z0-9._-
|
||||
# required
|
||||
- name: test-certificate.example.com
|
||||
|
||||
# Contains the API-Key to fetch the certificate from the server
|
||||
# required
|
||||
|
||||
api_key: examplekey_notvalid_hrzjGDDw8z
|
||||
|
||||
# action to run when certificate was updated or --force is on
|
||||
action: "/usr/bin/systemd reload caddy"
|
||||
|
||||
# path where to save the certificate
|
||||
# required
|
||||
file_path: "/path/to/test-certificate.example.com-cert.pem"
|
||||
```
|
||||
|
||||
... and run it!
|
||||
```shell
|
||||
certwarden-deploy -v
|
||||
```
|
||||
## Contributing
|
||||
|
||||
I use my own [Forgejo Instance](https://code.lila.network) to manage issues and pull requests.
|
||||
|
||||
* If you have a trivial fix or improvement, go ahead and create a pull request,
|
||||
addressing (with `@...`) the maintainer of this repository (see
|
||||
[MAINTAINERS.md](MAINTAINERS.md)) in the description of the pull request.
|
||||
|
||||
* If you plan to do something more involved, first please [send me a mail]( mailto:adora@lila.network?subject=%5Bcertwarden-deploy%5D).
|
||||
|
||||
### What to contribute
|
||||
|
||||
The best way to help without speaking a lot of Go would be to share your
|
||||
configuration, alerts, dashboards, and recording rules. If you have something
|
||||
that works and is not in the repository, please pay it forward and
|
||||
share what works.
|
||||
|
||||
## Changelog
|
||||
You can find the Changelog here: [Changelog](https://code.lila.network/adoralaura/certwarden-deploy/src/branch/main/CHANGELOG.md)
|
||||
|
||||
## License
|
||||
`certwarden-deploy` is available under the MIT license. See the [LICENSE](https://code.lila.network/adoralaura/certwarden-deploy/src/branch/main/LICENSE) file for more info.
|
29
content/docs/introduction/_index.md
Normal file
29
content/docs/introduction/_index.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: Introduction
|
||||
type: docs
|
||||
---
|
||||
|
||||
# Introduction
|
||||
|
||||
## CertWarden
|
||||
|
||||
[CertWarden](https://www.certwarden.com/) is a self-hosted Centralized ACME Certificate Management platform. With it you can manage and aquire Let's Encrypt certificates.
|
||||
|
||||
However, to deploy them to your hosts, for now there only was a docker client, and that was too bloated for me.
|
||||
|
||||
So I built `certwarden-deploy`, a dependency-less binary that can run via crontab/systemd timers and that can fetch new certificates and run actions after new certificates got rolled out.
|
||||
|
||||
## Quick Start
|
||||
|
||||
Installation of the required CertWarden instance is out of scope of this documentation. For detailed instructions regarding CertWarden, please visit [it's documentation](https://www.certwarden.com/docs/introduction/)
|
||||
|
||||
|
||||
To quickly get started with `certwarden-deploy`, just download the binary and run it.
|
||||
|
||||
```shell
|
||||
# this downloads certwarden-deploy version 0.1.1
|
||||
# to /usr/local/bin/certwarden-deploy
|
||||
sudo wget https://code.lila.network/adoralaura/certwarden-deploy/releases/download/0.1.1/certwarden-deploy-0.1.1-linux-amd64 -O /usr/local/bin/certwarden-deploy
|
||||
|
||||
sudo chmod +x /usr/local/bin/certwarden-deploy
|
||||
```
|
22
content/menu/index.md
Normal file
22
content/menu/index.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
headless: true
|
||||
---
|
||||
|
||||
- [**Example Site**]({{< relref "/docs/example" >}})
|
||||
- [Table of Contents]({{< relref "/docs/example/table-of-contents" >}})
|
||||
- [With ToC]({{< relref "/docs/example/table-of-contents/with-toc" >}})
|
||||
- [Without ToC]({{< relref "/docs/example/table-of-contents/without-toc" >}})
|
||||
- [Collapsed]({{< relref "/docs/example/collapsed" >}})
|
||||
- [3rd]({{< relref "/docs/example/collapsed/3rd-level" >}})
|
||||
- [4th]({{< relref "/docs/example/collapsed/3rd-level/4th-level" >}})
|
||||
<br />
|
||||
|
||||
- **Shortcodes**
|
||||
- [Buttons]({{< relref "/docs/shortcodes/buttons" >}})
|
||||
- [Columns]({{< relref "/docs/shortcodes/columns" >}})
|
||||
- [Expand]({{< relref "/docs/shortcodes/expand" >}})
|
||||
- [Hints]({{< relref "/docs/shortcodes/hints" >}})
|
||||
- [KaTeX]({{< relref "/docs/shortcodes/katex" >}})
|
||||
- [Mermaid]({{< relref "/docs/shortcodes/mermaid" >}})
|
||||
- [Tabs]({{< relref "/docs/shortcodes/tabs" >}})
|
||||
<br />
|
1
themes/hugo-book
Submodule
1
themes/hugo-book
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 7c26d9b8b731d556a2bf89848f59e8300eabc44b
|
Reference in a new issue