This repo has been forked from HaschekSolutions/PictShare-Docker to make this work with Scaleway's Object Storage
<Error>
<Code>AuthorizationHeaderMalformed</Code>
<Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'nl-ams'</Message>
<Region>nl-ams</Region>
<RequestId>x</RequestId>
</Error>
Only difference is to add the environment variable SCALEWAY_REGION=nl-ams
:
$ docker run -it -p 80:80 -e SCALEWAY_REGION=nl-ams [other options from below] ruanbekker/pictshare-backend:scw-ams
The fastest way to deploy PictShare
It automatically updates on start unless you supply the env variable AUTOUPDATE=false
docker build -t hascheksolutions/pictshare .
docker run -d -p 80:80 --name=pictshare hascheksolutions/pictshare
mkdir /data/pictshareuploads
chown 1000 -R /data/pictshareuploads
docker run -d -v /data/pictshareuploads:/usr/share/nginx/html/data -p 80:80 --name=pictshare hascheksolutions/pictshare
mkdir /data/pictshareuploads
chown 1000 -R /data/pictshareuploads
docker run -d -e "MAX_UPLOAD_SIZE=1024" -v /data/pictshareuploads:/usr/share/nginx/html/data -p 80:80 --name=pictshare hascheksolutions/pictshare
There are some ENV variables that only apply to the Docker image
- AUTO_UPDATE (true/false | should the container upgrade on every start? default: true)
- MAX_UPLOAD_SIZE (int | size in MB that will be used for nginx. default 50)
Every other variable can be referenced against the default PictShare configuration file.
-
TITLE (string | Title of the page)
-
URL (string | URL that will be linked to new uploads)
-
PNG_COMPRESSION (int | 0-9 how much compression is used. note that this never affects quality. default: 6)
-
JPEG_COMPRESSION (int | 0-100 how high should the quality be? More is better. default: 90)
-
MASTER_DELETE_CODE (string | code if added to any url, will delete the image)
-
MASTER_DELETE_IP (string | ip which can delete any image)
-
ALLOW_BLOATING (true/false | can images be bloated to higher resolutions than the originals)
-
UPLOAD_CODE (string | code that has to be supplied to upload an image)
-
UPLOAD_FORM_LOCATION (string | absolute path where upload gui will be shown)
-
LOW_PROFILE (string | won't display error messages on failed uploads)
-
IMAGE_CHANGE_CODE (string | code if provided, needs to be added to image to apply filter/rotation/etc)
-
LOG_UPLOADER (true/false | log IPs of uploaders)
-
MAX_RESIZED_IMAGES (int | how many versions of a single image may exist? -1 for infinite)
-
SHOW_ERRORS (true/false | show upload/size/server errors?)
-
ALT_FOLDER (path to a folder where all hashes will be copied to and looked for offsite backup via nfs for example)
-
S3_BUCKET (string | Name of your S3 bucket)
-
S3_ACCESS_KEY (string | Access Key for your Bucket)
-
S3_SECRET_KEY (string | Secrety Key)
-
S3_ENDPOINT (url | If you are using a selfhosted version of S3 like Minio, put your URL here)
-
ENCRYPTION_KEY (string | If you want to use encryption for storage controllers, put your encryption key here. Read more)
-
FTP_SERVER (string | IP or hostname of your FTP Server )
-
FTP_PORT (int | Port of your FTP server (defaults to 21) )
-
FTP_SSL (true/false | If FTP server supports SSL-FTP (not sFTP, thats not the same!))
-
FTP_USER (string | FTP Username)
-
FTP_PASS (string | FTP Password)
-
FTP_BASEDIR (string | Base path where files will be stored. Must end with / eg
/web/pictshare/
)