sudo apt install certbot -y
# Download and install dns plugin for certbot
# Run as root
mkdir -p /tmp/certificate && cd /tmp/certificate
wget https://github.com/joohoi/acme-dns-certbot-joohoi/raw/master/acme-dns-auth.py
# Replace python to python3 executableThis command will host a docker register
docker run -d -p 5000:5000 -v ./register/images:/var/lib/registry -v ./certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/fullchain.pem -e REGISTRY_HTTP_TLS_KEY=/certs/privkey.pem --restart on-failure --name myregistry registry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ar3H/5RlnmGqQWUVlSfH5M2PcL0+bY9jw5rnuKEn9hdXZrqlD5U5AUpNp7Pmp2Zi3SRGLAZfJ+tDkYq2u/b/brtT26rLx5fy5bwTa/6OV/md6dfiBYy2u5lbkZ7KqOLNNIDjomC0E8GIiwYTIGoOQLN1KeZvUca1NyvrFNp32X7Z+ylxXlFQF0YYBRG08XBHtPnEiMwnEXG5GCtAzwl4gNEyZC6XE7MLQYfrkouE3TR/nbhoRVq8nl9K79K4/zNS3c0w3mkvYMFQz8nSfaT5qTYXZ2LdhiToVi1CQlA1nJeAmyT6JBWihjyXNRGWykLvaTiM4GvJx7X81RW37N4rBa58NCuUCdn3/uihkM5pLaCXLldNNoKcDZ9cQs4jup0pICp2UruY1Gw7eJki3MKaKc+MVr/Zu3peaNhVhXJuhDfEc73Tu/LmMUQSnQMtT5gWRac5pvqZXmMw9depXs1Ej8TAgM3lsKsbxlhuIbprU5fp2mcR2bLY3tTs2/XW5FHIH9CmtvIQtB3vJyBxwMS58+M9XtP4YtVFiXwNedxmwXQrGqHmwsPlLSIxNXTHi11fVIUPIGs4iSchW0Uk0pjtd/CDO/tB+oy9NTRvooHbPu7b6BPTHvcpS0qIWuC6BybAykeWbV+sxmcojq9eB1wCTh2N2B6NsyXBsu9Vg9K4R0272AWLNpFWhhGs0Y7h91klHVFyg5qgL/6dEwoIcqX8arZXI39TeBaeYUfoeH4+mKbDBzhLu25tuztrhnx6CuPT7WRIIerbyvSiKO9iag3tLoJUuFD3Z9+sf27vlwsxf3/TwxF24YiIl4ssROaHoSkPy4AMuOEslQTtNjASSSK3fK5zHT6IU84CTAT7NG3bGOzK8MFsFyi1wu1nQ1rOQao9idkzqEbFeKKp+2yHWFzt/dwJgNYvl0Drm+EQtfdLgLx6raaxzvjq79I+gEp2vQpF9qPD00fPVAhmvOLN5clyoRAAEbaex4brd0f5/X0CqN4KoKz5/MIzesVjYTTjP2Rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { generateKeyPairSync, sign } = require('crypto'); | |
| const fs = require('fs'); | |
| // 1. Gera o par de chaves Ed25519 | |
| const { publicKey, privateKey } = generateKeyPairSync('ed25519'); | |
| // 2. Extrai chave pública crua (32 bytes) | |
| const publicRaw = publicKey.export({ format: 'der', type: 'spki' }).slice(-32); | |
| const publicKeyBase64Url = publicRaw.toString('base64url'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createClient } from "@libsql/client"; | |
| import crypto from 'node:crypto' | |
| const turso = createClient({ | |
| url: "http://127.0.1:8080", | |
| authToken: "...JWT generated from private key consult https://gist.github.com/Hiweus/15e2f94fb831b6ee389a4f21c9b460d6", | |
| }) | |
| await turso.execute("create table if not exists user (id integer primary key autoincrement, name TEXT) strict") |
OlderNewer