mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 00:06:28 +00:00
pipeline
This commit is contained in:
parent
3036927a45
commit
1698abe2eb
@ -14,11 +14,12 @@ services:
|
||||
env_file: .dev.env
|
||||
depends_on:
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 1234:8000
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "--fail", "http://127.0.0.1:8000/api/live/"]
|
||||
test: ['CMD', 'curl', '--fail', 'http://127.0.0.1:8000/api/live/']
|
||||
interval: 1m
|
||||
timeout: 3s
|
||||
retries: 2
|
||||
|
@ -5,7 +5,7 @@ import { Adapters, BASE, create, FileDTO, Note, NoteMeta } from '@cryptgeon/shar
|
||||
import mime from 'mime'
|
||||
import { AES, Hex } from 'occulto'
|
||||
|
||||
type UploadOptions = Pick<Note, 'views' | 'expiration'> & { password?: string }
|
||||
export type UploadOptions = Pick<Note, 'views' | 'expiration'> & { password?: string }
|
||||
|
||||
export async function upload(input: string | string[], options: UploadOptions): Promise<string> {
|
||||
const { password, ...noteOptions } = options
|
||||
|
Loading…
Reference in New Issue
Block a user