mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-12 03:06:22 +00:00
more readmes
This commit is contained in:
@@ -51,3 +51,10 @@ Test site: https://dev.pictshare.net/ (only sometimes on)
|
|||||||
- [x] Upload of videos
|
- [x] Upload of videos
|
||||||
- [x] Automatic conversion if not mobile friendly or wrong encoder used
|
- [x] Automatic conversion if not mobile friendly or wrong encoder used
|
||||||
- [x] Render template for videos
|
- [x] Render template for videos
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
This is a [HASCHEK SOLUTIONS](https://haschek.solutions) project
|
||||||
|
|
||||||
|
[](https://haschek.solutions)
|
||||||
32
rtfm/DOCKER.md
Normal file
32
rtfm/DOCKER.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Docker
|
||||||
|
The fastest way to deploy PictShare is via the [official Docker repo](https://hub.docker.com/r/hascheksolutions/pictshare/)
|
||||||
|
- [Source code & more examples](https://github.com/HaschekSolutions/PictShare-Docker)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d -p 80:80 -e "TITLE=My own PictShare" hascheksolutions/pictshare
|
||||||
|
```
|
||||||
|
|
||||||
|
[](https://www.pictshare.net/8a1dec0973.mp4)
|
||||||
|
|
||||||
|
### Docker Compose With Prebuild Image by hascheksolutions
|
||||||
|
|
||||||
|
Run container by docker-compose:
|
||||||
|
- First, install docker compose:
|
||||||
|
[Docker official docs](https://docs.docker.com/compose/install/)
|
||||||
|
- Pull docker-compose file:
|
||||||
|
```bash
|
||||||
|
wget https://raw.githubusercontent.com/chrisiaut/pictshare/master/docker-compose.yml
|
||||||
|
```
|
||||||
|
- Edit docker-compose file:
|
||||||
|
```bash
|
||||||
|
vi docker-compose.yml
|
||||||
|
```
|
||||||
|
- Run container by docker-compose:
|
||||||
|
```bash
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
By using this compose file, you should know that:
|
||||||
|
- Will make a directory "volumes" in the same directory where compose file is.
|
||||||
|
- Change `AUTOUPDATE` to false from true by defalt.
|
||||||
|
- And...it is highly recommended to build your own image.
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
# Install guide
|
||||||
|
|
||||||
|
PictShare is written to be run on a linux server with PHP 7 and nginx. We tried to support Windows for some time but ever since we started integrating ffmpeg for MP4 hosting we ditched Windows.
|
||||||
|
|
||||||
|
- Make sure you have PHP7 GD libraries installed: ```apt-get install php-gd```
|
||||||
|
- Unpack the [PictShare zip](https://github.com/chrisiaut/pictshare/archive/master.zip)
|
||||||
|
- Rename /inc/example.config.inc.php to /inc/config.inc.php
|
||||||
|
- ```chmod +x bin/ffmpeg``` if you want to be able to use mp4 uploads
|
||||||
|
- The provided ffmpeg binary (bin/ffmpeg) is from [here](http://johnvansickle.com/ffmpeg/) and it's a 64bit linux executable. If you need a different one, load yours and overwrite the one provided or if you have ffmpeg installed on the server you can use the config var ```FFMPEG_BINARY``` to tell PictShare where to look for the binary
|
||||||
|
- (optional) You can and should put a [nginx](https://www.nginx.com/) proxy before the Apache server. That thing is just insanely fast with static content like images.
|
||||||
|
- (optional) To secure your traffic I'd highly recommend getting an [SSL Cert](https://letsencrypt.org/) for your server if you don't already have one.
|
||||||
|
|
||||||
|
|
||||||
|
## Upgrading
|
||||||
|
- Just re-download the [PictShare zip](https://github.com/chrisiaut/pictshare/archive/master.zip) file and extract and overwrite existing pictshare files. Uploads and config won't be affected.
|
||||||
|
- Check if your ```/inc/config.inc.php``` file has all settings required by the ```/inc/example.config.inc.php``` since new options might get added in new versions
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# to be run from the directory where your pictshare directory sits in
|
||||||
|
git clone https://github.com/chrisiaut/pictshare.git temp
|
||||||
|
cp -r temp/* pictshare/.
|
||||||
|
rm -rf temp
|
||||||
|
```
|
||||||
|
|
||||||
|
## Nginx configuration
|
||||||
|
This is a simple config file that should make PictShare work on nginx
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name your.awesome.domain.name;
|
||||||
|
|
||||||
|
root /var/www/pictshare; # or where ever you put it
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?url=$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php {
|
||||||
|
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; #may be slightly different depending on your php version
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_script_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /(data|tmp|bin|content-controllers|inc|interfaces|storage-controllers|templates|tools) {
|
||||||
|
deny all;
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
6
rtfm/INTEGRATIONS.md
Normal file
6
rtfm/INTEGRATIONS.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Integrating PictShare in other programs
|
||||||
|
|
||||||
|
- [Pastebinit](/rtfm/PASTEBINIT.md)
|
||||||
|
- Chrome Browser extension: https://chrome.google.com/webstore/detail/pictshare-1-click-imagesc/mgomffcdpnohakmlhhjmiemlolonpafc
|
||||||
|
- Source: https://github.com/chrisiaut/PictShare-Chrome-extension
|
||||||
|
- Plugin to upload images with ShareX: https://github.com/ShareX/CustomUploaders/blob/master/pictshare.net.sxcu
|
||||||
12
rtfm/SCALING.md
Normal file
12
rtfm/SCALING.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# How to scale PictShare
|
||||||
|
|
||||||
|
If your library is huge then you might want to think about scaling your instances. Pictshare (v2+) was rebuilt with scaling in mind but instead of built-in scaling features we use a smarter system
|
||||||
|
|
||||||
|
# The "ALT_FOLDER" setting
|
||||||
|
You can set the config var ```ALT_FOLDER``` to point to a directory on the same server where pictshare will look for content and put new uploads.
|
||||||
|
|
||||||
|
This allows you to have a shared or even a mounted ftp/nfs folder that will act as the "database" of images across multiple PictShare instances.
|
||||||
|
|
||||||
|
The main site https://pictshare.net uses this technique to scale across many servers in multiple countries.
|
||||||
|
|
||||||
|
Using this method you can have multiple servers for the same domain (with a reverse proxy)
|
||||||
Reference in New Issue
Block a user