# 简易图床 **Repository Path**: L12-31/SimpleImages ## Basic Information - **Project Name**: 简易图床 - **Description**: 超简易图床 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://img.sinfrog.cn/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-20 - **Last Updated**: 2024-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简易图床 如你所见,这是一款超级简单的方便的图床程序,其中可以看到如果更改一些东西会变成一个超简易云盘“系统”。 ## 如何使用 点击上传图片,然后点击确认上传;上传的图片可以点击图片复制图片链接 ## 如何部署/部署环境 - PHP>=7.0,推荐使用PHP7.4 - 无需MySQL - `重要!` 一定要自己在服务器里添加一个`uploads`的文件夹用来放置图片 - 目前已知可用Nginx搭建,权限755(阿帕奇的没有图片链接复制功能) ## 演示程序 [在线演示](https://img.sinfrog.cn/) ## 伪静态设置 ### Nginx服务器 ``` location / { try_files $uri$uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; include fastcgi_params; } ``` ### Apache服务器 ``` RewriteEngine On RewriteBase /your/base/path RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] ```