定制 miarra/fileserver 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

miarra/fileserver

Composer 安装命令:

composer create-project miarra/fileserver

包简介

Miarra: Fileserver based on Nette FW

README 文档

README

This aplication stores images for others aplications.

Setting

You must set options in local config file like this:

parametres:
	username: 'username'
	password: 'password'
	cacheTime: '2 minutes'

Is recommended to set up VirtualHost like this (for Apache2):

<VirtualHost *:80>
        # informations about webmaster showed in case that web crasched
        ServerAdmin name@mail.foo
        # domain to aply rules
        ServerName domain.bar
        # set document root
        DocumentRoot /path/to/document/root
        # default setting for document root
        <Directory "/path/to/document/root/">
				AllowOverride All
				Order Allow,Deny
				Allow from all
				Require all granted
					
				#is recommended to use XSendFile
				<IfModule mod_xsendfile.c>
						<Files *.php>
								XSendFile On
								XSendFilePath /path/to/images/folder/
						</Files>
				</IfModule>
				
				#MOD_X_SENDFILE_ENABLED will be 1 if XSendFile is enabled, 0 otherwise
				SetEnv MOD_X_SENDFILE_ENABLED 0
				
	</Directory>
</VirtualHost>

Folders log, temp and images must have right to write.

Saving and Loading files/images

For save, load and delete image use miarra/filemanipulator which you can find on packagist https://packagist.org/packages/miarra/filemanipulator or on bitbucked https://bitbucket.org/miarra/filemanipulator.git.

Security

All files are accessable only from given URL. Direct access is not permited.

In case you don't use PROXY, you need concatenate returned URL with your file server URL and server images folder

(Example: 'https://< yourFileServerURL.xy >/images/< yourReturnedURL >').

Use Https protocol only.

Conclusion

This Aplication runs with PHP 8.4 and Nette 3.2 and it is property of Miarra © 2025

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固