This commit is contained in:
2025-04-14 23:58:17 +08:00
commit b92686ce29
55 changed files with 2352 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
## esm.sh docker
```sh
docker pull ghcr.io/esm-dev/esm.sh
```
```sh
docker pull m.daocloud.io/ghcr.io/esm-dev/esm.sh
```
## 部署配置
`config.json`
```json
{
"port": 8080,
"npmRegistry": "https://registry.npmjs.org/"
}
```
`compose.yml`
```yml
version: '3'
services:
esm:
image: ghcr.io/esm-dev/esm.sh:latest
container_name: esm
ports:
- '12000:8080'
environment:
- LOG_LEVEL=debug
volumes:
- ./config.json:/esmd/config.json
- ./data:/esmd
```
## 介绍
Available environment variables:
COMPRESS使用gzip/brotli压缩HTTP响应默认值为true启用
CUSTOM_LANDING_PAGE_ORIGIN自定义着陆页来源地址默认为空。
CUSTOM_LANDING_PAGE_ASSETS自定义着陆页资源文件以逗号分隔默认为空。
CORS_ALLOW_ORIGINS允许的CORS来源以逗号分隔默认允许所有来源*)。
LOG_LEVEL日志级别可选值["debug", "info", "warn", "error"],默认为"info"。
ACCESS_LOG是否启用访问日志默认false禁用
MINIFY是否压缩构建后的JS/CSS文件默认true启用
NPM_QUERY_CACHE_TTLNPM查询缓存有效期默认10分钟。
NPM_REGISTRY全局NPM镜像源默认为"https://registry.npmjs.org/"。
NPM_TOKEN全局NPM镜像源的访问令牌。
NPM_USER全局NPM镜像源的访问用户名。
NPM_PASSWORD全局NPM镜像源的访问密码。
SOURCEMAP是否为构建的JS/CSS文件生成源码映射默认true启用
STORAGE_TYPE存储类型可选值["fs", "s3"],默认为"fs"(本地文件系统)。
STORAGE_ENDPOINT存储服务端点默认路径为"~/.esmd/storage"。
STORAGE_REGIONS3存储区域仅S3存储需要
STORAGE_ACCESS_KEY_IDS3存储的访问密钥ID。
STORAGE_SECRET_ACCESS_KEYS3存储的私有访问密钥。
You can also create your own Dockerfile based on ghcr.io/esm-dev/esm.sh:
FROM ghcr.io/esm-dev/esm.sh:latest
ADD --chown=esm:esm ./config.json /etc/esmd/config.json
CMD ["esmd", "--config", "/etc/esmd/config.json"]

View File

@@ -0,0 +1,13 @@
# mc 的一些常用命令
## mc
```sh
mc alias set 'markminio' 'http://192.168.31.39:9000' 'admin' 'admin123'
mc mirror --watch ./mark markminio/mark --overwrite
mc mirror markminio/mark mark --overwrite
```

View File

@@ -0,0 +1,2 @@
## minio-serve

View File

@@ -0,0 +1,3 @@
# assistant 助手
使用ai和本地部署解决一切期望尽可能解决的东西。

1
mark/common/alist.md Normal file
View File

@@ -0,0 +1 @@
123123

1
mark/common/b.md Normal file
View File

@@ -0,0 +1 @@
this is a test4

0
mark/common/calibre.md Normal file
View File

View File

0
mark/common/dify.md Normal file
View File

0
mark/common/fastgpt.md Normal file
View File

0
mark/common/gitea.md Normal file
View File

View File

0
mark/common/jupyter.md Normal file
View File

0
mark/common/localsend.md Normal file
View File

0
mark/common/logseq.md Normal file
View File

0
mark/common/minio.md Normal file
View File

0
mark/common/navidrome.md Normal file
View File

0
mark/common/nginx.md Normal file
View File

0
mark/common/obsidian.md Normal file
View File

0
mark/common/ollama.md Normal file
View File

0
mark/common/pot.md Normal file
View File

View File

0
mark/common/searxng.md Normal file
View File

0
mark/common/snipaster.md Normal file
View File

0
mark/common/umami.md Normal file
View File

View File

0
mark/common/vllm.md Normal file
View File

0
mark/common/webdav.md Normal file
View File

0
mark/common/xiaoya.md Normal file
View File

0
mark/db/minio.md Normal file
View File

0
mark/db/postgres.md Normal file
View File

0
mark/db/redis.md Normal file
View File

15
mark/docker/proxy.md Normal file
View File

@@ -0,0 +1,15 @@
## proxy
| 源站 | 替换为 | 备注 |
| ------------------ | --------------------- | ---------------------------------------------- |
| docker.elastic.co | elastic.m.daocloud.io | |
| docker.io | docker.m.daocloud.io | |
| gcr.io | gcr.m.daocloud.io | |
| ghcr.io | ghcr.m.daocloud.io | |
| k8s.gcr.io | k8s-gcr.m.daocloud.io | k8s.gcr.io 已被迁移到 registry.k8s.io |
| registry.k8s.io | k8s.m.daocloud.io | |
| mcr.microsoft.com | mcr.m.daocloud.io | |
| nvcr.io | nvcr.m.daocloud.io | |
| quay.io | quay.m.daocloud.io | |
| registry.ollama.ai | ollama.m.daocloud.io | 实验内测中,[使用方法](#加速-ollama--deepseek) |

View File

@@ -0,0 +1 @@
https://github.com/sindresorhus/github-markdown-css

View File

View File

0
mark/mac/iterm.md Normal file
View File

0
mark/mac/raycast.md Normal file
View File

0
mark/npm/registry.md Normal file
View File

View File

@@ -0,0 +1,27 @@
安装环境
```sh
conda create -n mineru 'python>=3.10' -y
conda activate mineru
pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
```
下载模型
```sh
pip install modelscope
curl -o download_models.py https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/scripts/download_models.py
python download_models.py
```
配置文件在 `magic-pdf.json`
使用
```sh
magic-pdf -p {some_pdf} -o {some_output_dir} -m auto
magic-pdf -p test.pdf -o test -m auto
```

View File

@@ -0,0 +1,4 @@
```sh
conda init --system --all
```