This commit is contained in:
Niccolo Borgioli 2024-03-04 15:15:47 +01:00
parent 3036927a45
commit 1698abe2eb
No known key found for this signature in database
GPG Key ID: 4897ACD13A65977C
2 changed files with 3 additions and 2 deletions

View File

@ -14,11 +14,12 @@ services:
env_file: .dev.env env_file: .dev.env
depends_on: depends_on:
- redis - redis
restart: unless-stopped
ports: ports:
- 1234:8000 - 1234:8000
healthcheck: 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 interval: 1m
timeout: 3s timeout: 3s
retries: 2 retries: 2

View File

@ -5,7 +5,7 @@ import { Adapters, BASE, create, FileDTO, Note, NoteMeta } from '@cryptgeon/shar
import mime from 'mime' import mime from 'mime'
import { AES, Hex } from 'occulto' 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> { export async function upload(input: string | string[], options: UploadOptions): Promise<string> {
const { password, ...noteOptions } = options const { password, ...noteOptions } = options