{"id":16419783,"url":"https://github.com/ericls/tushe","last_synced_at":"2025-03-16T17:34:08.781Z","repository":{"id":35117811,"uuid":"39309277","full_name":"ericls/tushe","owner":"ericls","description":"A web based image hosting, viewing and sharing service build on top of Flask.","archived":false,"fork":false,"pushed_at":"2015-07-24T03:00:53.000Z","size":170,"stargazers_count":111,"open_issues_count":0,"forks_count":34,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-12T07:26:00.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"tushe.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-18T19:01:26.000Z","updated_at":"2022-01-25T15:09:46.000Z","dependencies_parsed_at":"2022-09-16T14:10:11.165Z","dependency_job_id":null,"html_url":"https://github.com/ericls/tushe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Ftushe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Ftushe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Ftushe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericls%2Ftushe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericls","download_url":"https://codeload.github.com/ericls/tushe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221666406,"owners_count":16860415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:25:58.512Z","updated_at":"2024-10-27T10:58:57.129Z","avatar_url":"https://github.com/ericls.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TUSHE\n\n演示：http://tushe.org\n\n图社（TUSHE）是基于 FLask 的图床和图片浏览网站源码，也可以用作套图网站。网站采用 Mongodb 作为数据库，图片也储存于 GridFS。\n采用 Flask—Login 做用户认证，采用 Flask-Admin 做后台。\n\n还用到了 Flask-Mongoengine, Flask-Bcrypt 等。见`requirements.txt`。\n\n## 特点\n- 注册用户可以认领未注册用户的图片，进行相关信息编辑。\n- 有图册功能，可以作为套图网站。\n- 支持微信公众平台接口，用微信上传图片（需要认证的订阅号或者服务号）。\n\n\n## Docker 自动部署\n运行 repo 里面的 docker-run.sh，或者直接运行如下命令\n\n`bash -c \"$(wget -O - https://raw.githubusercontent.com/ericls/tushe/master/docker-run.sh)\"`\n\n会提示输入端口号，请输入一个非常用的端口\n\n运行完成之后， 会提示 nginx 的配置，照着配置就可以了。\n\n## 常规部署\n\n### 要求\n\n1. Python3.3+\n1. pip install -r requirements.txt (Pillow 相关的支持见：[http://pillow.readthedocs.org/installation.html#linux-installation](http://pillow.readthedocs.org/installation.html#linux-installation))\n\n### 部署方法\n提供了uwsgi supervisor 配合 nginx 的配置文件。具体请参考他们的文档。\n\n也可以采用其他方式部署，wsgi 服务器网关接口为`tushe.app`。\n\n## 已知问题和解决方式\n\n由于引用了 Flask-Login 和 GridFs，所有的请求会插入 Set-Cookie 的 Header。\n\n目前的解决方式是在 Nginx 里面对对应的目录设置 uwsgi_hide_header Set-Cookie。\n\n另外，为了不让每次请求都从数据库读取，可以再引入 Flask-Cache 和在 Nginx 里面设置 uwsgi_cache 相关参数。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericls%2Ftushe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericls%2Ftushe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericls%2Ftushe/lists"}