diff --git a/Dockerfile b/Dockerfile index 1998421..73e0519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,9 @@ WORKDIR /usr/app COPY --from=build /build/src/app /usr/app +# Copy ca-certificates for TLS (specifically STARTTLS for SMTP) +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ + COPY ./views /usr/app/views COPY ./public /usr/app/public diff --git a/views/docs.hbs b/views/docs.hbs index 410a7b6..e22b943 100644 --- a/views/docs.hbs +++ b/views/docs.hbs @@ -9,7 +9,6 @@
The parameter names remain the same regardless of the content type used. The examples in this documentation use form data for simplicity, as it doesn't require explicitly setting content type headers.
-The 0x45 CLI tool provides a convenient way to interact with the service from your terminal.
- - Installation -go install github.com/watzon/0x45-cli/cmd/0x45@latest
-
- Alternatively, you can build from source:
-git clone https://github.com/watzon/0x45-cli.git
-cd 0x45-cli
-go build -o $GOPATH/bin/0x45 ./cmd/0x45
-
- Before using the CLI, configure your API key and optionally the API URL:
-0x45 config set api_key YOUR_API_KEY
-
- 0x45 config set api_url https://your-instance.com
-
- 0x45 key request --name "Your Name" --email "your@email.com"
-
- 1. Upload a file
-curl -F "file=@path/to/file.txt" {{baseUrl}}/p
-
- 0x45 upload path/to/file.txt
-
- 2. Upload a private file with expiration
-curl -F "file=@path/to/file.txt" -F "private=true" -F "expires_in=24h" "{{baseUrl}}/p"
-
- 0x45 upload --private --expires 24h path/to/file.txt
-
- 3. Upload from stdin
-echo "Hello, World!" | curl --data-binary @- {{baseUrl}}/p
-
- echo "Hello, World!" | 0x45 upload -
-
- 1. Shorten a URL
-curl -X POST -d "url=https://example.com" {{baseUrl}}/u
-
- 0x45 shorten https://example.com
-
- 2. Shorten a private URL with expiration
-0x45 shorten --private --expires 7d https://example.com
-
- 1. List your uploads
-0x45 list pastes
-
- 2. List your shortened URLs
-0x45 list urls
-
- 3. List with pagination
-0x45 list pastes --page 2 --limit 10
-
- 4. Delete content
-0x45 delete CONTENT_ID
-
- 1. Get a config value
-0x45 config get KEY
-
- 2. Set a config value
-0x45 config set KEY VALUE
-
- Install our CLI tool for easier interaction:
-go install github.com/watzon/0x45-cli/cmd/0x45@latest
-
- 0x45 upload file.txt
-
- cat file.txt | 0x45 upload -
-
- 0x45 shorten https://example.com
-
-