mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-01-28 08:58:24 +00:00
Updated Manual install (markdown)
parent
45cfc330c4
commit
619fd1bbf6
|
@ -130,10 +130,8 @@ CREATE TABLE groups (
|
|||
);
|
||||
```
|
||||
|
||||
## Manifest
|
||||
In the `app/settings/manifest.json` you have a list of information about your website. You must change `user_name` to your preferred name, `is_testing` to false (or anything else) as that is used for development and `upload_max` to your preferred file size max in MBs.
|
||||
|
||||
# Images Folder
|
||||
# Images
|
||||
## Folders
|
||||
Since there is currently no automated install script for this gallery, you'll have to make your own folders to hold images in. To do that, go into the root directory of the gallery and type the following commands:
|
||||
```
|
||||
mkdir images
|
||||
|
@ -155,14 +153,7 @@ INSERT INTO tokens (code, used) VALUES('UserToken', false)
|
|||
|
||||
Head over to the Login section off the app and click the __Need an account__ button, from there you can enter your own details. Once you get to the token section enter __UserToken__. And with that, you have now set up your own image gallery!
|
||||
|
||||
## Upload limit
|
||||
You should also keep in mind the file size, by default images of 20MBs should be able to get uploaded. But if you run into issues, either raise the file size in the `manifest.json` or locate your `php.ini` on your web-server, usually under `/etc/php/8.1/fpm/php.ini`, and modify `upload_max_filesize`, then `post_max_size` to a same or greater value.
|
||||
|
||||
# Usage
|
||||
# Admin
|
||||
As an admin, you can do things such as modifying other people's posts, resetting users passwords and checking logs for sussy behavior. With that, use these tools with respect to others and don't abuse them.
|
||||
|
||||
If you trust someone enough, you can set them to a moderator through the settings > users > toggle admin. You can tell who is an admin by the green highlight to the left of their name.
|
||||
|
||||
# Images
|
||||
Uploading images is as simple as choosing the image you want to upload, then clicking upload! Keep in mind that not all formats play well as this gallery uses Imagik to generate thumbnails and preview images, so images such as GIFs do not work as of now. Supported file formats include JPG, JPEG, PNG and WEBP.
|
||||
|
||||
You should also keep in mind the file size, by default images of 20MBs should be able to get uploaded. But if you run into issues, either raise the file size in the `manifest.json` or locate your `php.ini` on your web-server, usually under `/etc/php/8.1/fpm/php.ini``, and modify `upload_max_filesize`, then `post_max_size` to a same or greater value.
|
Loading…
Reference in a new issue