All Projects → qieangel2013 → Ngx Fastdfs

qieangel2013 / Ngx Fastdfs

nginx + lua +fastdfs Real-time dynamic compression of distributed pictures

Programming Languages

c
50402 projects - #5 most used programming language
lua
6591 projects

Projects that are alternatives of or similar to Ngx Fastdfs

Janus Webrtc Gateway Docker
Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
Stars: ✭ 582 (+298.63%)
Mutual labels:  docker-image, nginx
Dockerfile
📦 Dockerfiles from WebDevOps for PHP, Apache and Nginx (with PHP5 and PHP7)
Stars: ✭ 1,169 (+700.68%)
Mutual labels:  docker-image, nginx
Nano Nginx
Nano container with nginx preconfigured as reverse proxy
Stars: ✭ 15 (-89.73%)
Mutual labels:  docker-image, nginx
Uwsgi Nginx Docker
Docker image with uWSGI and Nginx for applications in Python 3.5 and above and Python 2.7 (as Flask) in a single container. Optionally with Alpine Linux.
Stars: ✭ 466 (+219.18%)
Mutual labels:  docker-image, nginx
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (-30.82%)
Mutual labels:  docker-image, nginx
Nginx Rtmp Docker
Docker image with Nginx using the nginx-rtmp-module module for live multimedia (video) streaming.
Stars: ✭ 506 (+246.58%)
Mutual labels:  docker-image, nginx
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-52.74%)
Mutual labels:  docker-image, nginx
Larakube
Laravel app deployment for auto scaled Kubernetes cluster
Stars: ✭ 157 (+7.53%)
Mutual labels:  docker-image, nginx
Ecs Nginx Proxy
Reverse proxy for AWS ECS. Lets you address your docker containers by sub domain.
Stars: ✭ 93 (-36.3%)
Mutual labels:  docker-image, nginx
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (-37.67%)
Mutual labels:  docker-image, nginx
Uwsgi Nginx Flask Docker
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Stars: ✭ 2,607 (+1685.62%)
Mutual labels:  docker-image, nginx
Docker Nginx Basic Auth
🔐 Simple Docker image for basic authentication
Stars: ✭ 111 (-23.97%)
Mutual labels:  docker-image, nginx
Bitnami Docker Nginx
Bitnami nginx Docker Image
Stars: ✭ 198 (+35.62%)
Mutual labels:  docker-image, nginx
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (+293.15%)
Mutual labels:  docker-image, nginx
Nginx
NGINX Accelerated! This is a Docker image that creates a high performance (FAST!), optimized image for NGINX for use with Redis and PHP-FMP. Deliver sites and applications with performance, reliability, security, and scale. This NGINX server offers advanced performance, web and mobile acceleration, security controls, application monitoring, and management.
Stars: ✭ 157 (+7.53%)
Mutual labels:  docker-image, nginx
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-74.66%)
Mutual labels:  docker-image, nginx
Docker Alpine Php Fpm
Docker image for php-fpm based on alpine linux that makes it small
Stars: ✭ 90 (-38.36%)
Mutual labels:  docker-image, nginx
Nginx Php Fpm
Nginx and php-fpm for dockerhub builds
Stars: ✭ 1,419 (+871.92%)
Mutual labels:  docker-image, nginx
Nginx Vod Module Docker
Docker image for nginx with Kaltura's VoD module used by The New York Times
Stars: ✭ 121 (-17.12%)
Mutual labels:  docker-image, nginx
Ssm Cluster
🍏Spring+SpringMVC+Mybatis+adminLTE3实现前后端分离(nginx负载均衡+tomcat集群)
Stars: ✭ 142 (-2.74%)
Mutual labels:  nginx

install

进入docker目录
docker build -t  fastdfs:dev .
如果比较慢可以换一下网易的源
docker pull hub.c.163.com/qieangel2013/ngx-fastdfs:latest

使用

docker run --net=host -idt -p 80:80 fastdfs:dev '/etc/rc.local'

测试

进入容器执行test目录下的./test.sh或者直接执行下面脚本
fdfs_test /etc/fdfs/client.conf upload /home/steven/01.jpg
...
group_name=group1, ip_addr=192.168.1.181, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKgdhFTV0ZmAP3AZAPk-Io7D4w8580.jpg
...
example file url: http://192.168.1.181/group1/M00/00/00/wKgdhFTV0ZmAP3AZAPk-Io7D4w8580.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKgdhFTV0ZmAP3AZAPk-Io7D4w8580_big.jpg
...
example file url: http://192.168.1.181/group1/M00/00/00/wKgdhFTV0ZmAP3AZAPk-Io7D4w8580_big.jpg

php调用

首先进入php_client
./configure --with-php-config=/usr/local/php/bin/php-config
make&&make install
在php.ini里添加
extension=fastdfs_client.so
[fastdfs_client]
fastdfs_client.base_path = /home/fastdfs/fastdfs
fastdfs_client.connect_timeout = 2
fastdfs_client.network_timeout = 60
fastdfs_client.log_level = info
fastdfs_client.log_filename =
fastdfs_client.tracker_group_count = 1
fastdfs_client.tracker_group0 = /etc/fdfs/client.conf
fastdfs_client.use_connection_pool = true
fastdfs_client.connection_pool_max_idle_time = 3600
根据自己的情况做相应的修改
重启php-fpm
执行test目录下的fastdfs.php就可以看到效果了

使用效果

自动压缩

自动压缩采用减少图片质量来达到减小图片体积的效果
使用方法是把nginx里的nginxauto.conf替换原有的或者自己按着该文件修改
把lua里的thumbnailauto.lua文件替换原有的或者自己按着该文件修改
注意:fastdfs的storage的配置/etc/fdfs/storage.conf中run_by_group和run_by_user,最好跟nginx的用户组配置一样

liveim是一款直播平台,内置im聊天功能

由于未开源,需要授权可以获取源代码

http://www.weivq.com:88/ (演示地址)
http://www.weivq.com:88/public/uploads/LiveIm.apk (安卓演示)
http://www.weivq.com:88/public/uploads/LiveImInstall.exe (pc端演示)

交流使用

交流群:337937322

如果你对我的辛勤劳动给予肯定,请给我捐赠,你的捐赠是我最大的动力

项目捐赠列表

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].