Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masipcat/caddy-storage-migrator
Import/Export TLS data from filesystem to another storage and viceversa
https://github.com/masipcat/caddy-storage-migrator
caddy certmagic tls v2
Last synced: 9 days ago
JSON representation
Import/Export TLS data from filesystem to another storage and viceversa
- Host: GitHub
- URL: https://github.com/masipcat/caddy-storage-migrator
- Owner: masipcat
- License: agpl-3.0
- Created: 2020-12-13T12:47:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-14T21:58:07.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T17:33:35.839Z (5 months ago)
- Topics: caddy, certmagic, tls, v2
- Language: Go
- Homepage: https://gitlab.masip.cat/masipcat/caddy-storage-migrator
- Size: 56.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Caddy Storage Migrator
[![Pipeline](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/pipeline.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master) [![Coverage](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/badges/master/coverage.svg)](https://gitlab.masip.cat/masipcat/caddy-storage-migrator/-/commits/master)
This is a simple command line application to import/export storage data from Caddy v2 (or Certmagic).
Right now supports the following modules:
- `redis` ([caddy-tlsredis](https://github.com/gamalan/caddy-tlsredis))
## Build
First we need to build the command:
```sh
cd cmd/migrator
go build
```## Usage
Now we can **import** existing data with the following command:
```sh
./migrator import /path/to/existing/caddypath
```...or **export** the redis data to the filesystem:
```sh
./migrator export ./any/folder
```Optionally the command accepts the flag `-config path/to/file.json`.
The JSON file should contain at least the storage configuration:```json
{
"storage": {
"..."
}
}
```