Skip to content

图片静态服务NGINX配置,数据量不大的时候可以当作对象存储来用。

Notifications You must be signed in to change notification settings

DonYum/static_pic_nginx_conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

static_pic_nginx_conf

图片静态服务NGINX配置,数据量不大的时候可以当作对象存储来用。

该repo更大的作用其实是openregestry lua demo。

启动:

cd ~/mgnnx
WORK_DIR=$PWD PICS_DIR=/data/objs/rawimgs PORT=8087 docker-compose up -d
tail -f access.log | awk '{if ($10>0) print $1"\t"$3"\t"$6"\t"$9"\t"$10}'
docker run --rm -d --name nginx3 -p 8087:80
-v $PWD/config/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro
-v /mnt/cephfs_online/ceph_bk_storage:/data/pics
-v $PWD/logs:/usr/local/openresty/nginx/logs
-v /etc/localtime:/etc/localtime
openresty/openresty

About

图片静态服务NGINX配置,数据量不大的时候可以当作对象存储来用。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published