Git Product home page Git Product logo

chevereto / chevereto Goto Github PK

View Code? Open in Web Editor NEW
398.0 4.0 31.0 6.18 MB

Self-hosted Image and Video Hosting solution, your own Flickr/imgur media sharing alternative with your rules.

Home Page: https://chevereto.com

License: GNU Affero General Public License v3.0

PHP 80.24% CSS 7.53% JavaScript 11.98% Hack 0.19% HTML 0.06%
image-host image-hosting image-sharing image-sharing-website self-hosted video-hosting video-sharing media-hosting media-sharing photo-management

chevereto's Issues

Delete image

1
截屏2023-02-14 12 54 30
截屏2023-02-14 13 24 48
The latest version will report an error when I delete the uploaded image. After deletion, it will be blank placeholder

Unable to install 4.0.5 version

Hello,
I am trying to install chevereto 4.0.5 version using PHP 8.0 and PHP 8.1 version. But during 1st step of the installation, I got the Something went wrong error. I am not getting the exact error to debug it.
I have created env.php inside ...//app folder and added the following:

'chevereto', 'CHEVERETO_DB_PASS' => 'user_database_password', 'CHEVERETO_DB_PORT' => '3306', 'CHEVERETO_DB_TABLE_PREFIX' => 'chv_', 'CHEVERETO_DB_USER' => 'user_database', ]; (replaced my database values with it). Please help how to resolve my issue. Thanks.

Unable to Upload images

Error report

preg_replace(): Compilation failed: unrecognized character follows \ at offset 16 (0)

Add comparison table on readme

Need to indicate all the features so users can understand what this edition does and how it compares to other editions.

Docker Chevereto behind Reverse Proxy logs wrong IPs

Hey,

I am using the Chevereto Docker image and run it behind a Traefik reverse proxy. Traefik is properly sending the user's real IP address along to the Chevereto container. However, in the mariadb table chv_requests, only internal Docker subnet IP addresses are logged.

This leads to problems regarding flood protection and IP bans. If such things occur, the IP address of the reverse proxy is banned and the whole Chevereto site is down.

image

I assume that the internal web server of the Chevereto container (Apache?) is missing the relevant mod_remoteip settings. Therefore, it does not trust the reverse proxy and will not take the defined real IP address of a website user in X-Forwarded-For.

Any help on how to fix this?

Here my docker-compose.yml:

version: "3.7"

services:
  chevereto:
    image: ghcr.io/chevereto/chevereto:latest
    container_name: chevereto
    init: true
    restart: unless-stopped
    volumes:
      - chevereto:/var/www/html/images
    expose:
      - 80
    environment:
      CHEVERETO_DB_HOST: mariadb
      CHEVERETO_DB_USER: chevereto
      CHEVERETO_DB_PASS: chevereto
      CHEVERETO_DB_PORT: 3306
      CHEVERETO_DB_NAME: chevereto
      CHEVERETO_ASSET_STORAGE_TYPE: local
      CHEVERETO_ASSET_STORAGE_URL: /images/_assets
      CHEVERETO_ASSET_STORAGE_BUCKET: /var/www/html/images/_assets
    networks:
      - proxy
    labels:
      - traefik.enable=true
      - traefik.http.routers.chevereto.rule=Host(`chevereto.example.com`)
      - traefik.http.services.chevereto.loadbalancer.server.port=80
      - traefik.docker.network=proxy

  mariadb:
    image: mariadb
    container_name: chevereto_mariadb
    restart: always
    init: true
    environment:
      MYSQL_DATABASE: chevereto
      MYSQL_USER: chevereto
      MYSQL_PASSWORD: chevereto
      MARIADB_ROOT_PASSWORD: chevereto
    volumes:
      - chevereto_mariadb:/var/lib/mysql
    networks:
      - proxy

volumes:
  chevereto: {}
  chevereto_mariadb: {}

networks:
  proxy:
    external: true

docker run error

error message:
something went wrong.code
647582de1c31a

how to resolve

Upgrade from v3 to v4 - Database Update fail

Hello,

I follwed this guide: https://v4-docs.chevereto.com/application/installing/upgrading.html Everything was fine, until I tried to update my database with "sudo -u www-data app/bin/legacy -C update". I already checked the installper.php, but I am not able to understand everything, so I kindly ask here for help.

System: LXC with Ubuntu 22.04, PHP 8.1, MySQL

I get the following error:

https://pastebin.com/FHrx11n1

Maybe I failed with the config update? This was my old config:

https://pastebin.com/DB2BL58y

And this is my new config:

https://pastebin.com/vVmAG8SY

I removed "db_pdo_attrs", Because version 4 could not handle it and gave me errors.

Chevereto Configuring a domain name

I gave Chevereto a domain name that I could use to access, but when I visited another page, the request address changed to https+ port number. Later, I set the domain name in Settings->Profile->Website, but it still didn't work

Enable custom logo?

This edition doesn't include custom logo. To change the logo you have to replace the file on disk.

Add your +1 reaction if you need this feature to be included (edit logo from dashboard)

Why ids are used with implodes in queries?

image

Hey... I'm wondering why you're using sprintf, implodes and concatting strings here to build sql queries?
if any of the ids that are being used in these queries were user supplied, can't they be a sql injection?

I see at times you're using parameters and I get that the table names are under your control, but the ids I find surprising?

Thanks for your time :D !

Issue while installing Chevereto 4.0.5

Hello,

I was in the process of installing Chevereto on Centos 7 with Apache 2.2, MYSQL 5.7 , PHP 8.0.22 using the release package via method mentioned here :

https://v4-docs.chevereto.com/application/installing/installation.html#using-release-package

However this doesn't seem to work. On hitting the installation URL http://{{DOMAIN.COM/chevereto/install as mentioned in the docs .

However the following is thrown :

Something went wrong as shown in the screenshot.

image

How do I debug the same ?.

Is there any way to print the debug information on screen or under apache logs .

Under apache logs nothing is thrown .

Add mp4 support

These days image hosting sites allow you to upload short MP4 files instead of inefficient GIFs (and many in fact automatically convert big GIFs into MP4 clips behind the curtain for space reasons, i know Imgur does but pretty sure many others do it too), would be good if this software also added support for these

The image is not accessible

When I use picgo+chevereto, I can upload the image using ip+ port normally, but when I use the domain name plus port, I can't, and when I use the domain name plus port to access my image is displayed as the visitor upload
PR7DVWWNQN%XH%P`VNP45PX

SV(GW)2`K_2$84TL}SXG3Z5
Above is the form I use domain name plus port
Below I will use the ip+ port form
image
Can view normally

Missing Notification Class when Deleting a Picture or Album

Hi! First off, thanks for creating Chevereto. It is an awesome piece of software =)

I am creating a new issue in reference to an old one, because it unfortunately still hasn't been resolved in the new update.

Basically, I encounter this error whenever I try to delete a picture or album:

image

Continuing to click "Confirm" just makes the Notification error pop up (shake):

Class "Chevereto\Legacy\Classes\Notification" not found (0)

After refreshing the page, I would see that the image still exists in the gallery, but it already has an "empty inbox" icon:

image

And when I click on the image to expand it, I get this:

image

That means that while the image has already (probably) been deleted, it still appears in the list. Couuld the error message regarding Notification be a clue?

Keep up the good work!

Version number not updated in 4.0.9 zip

Hello @rodber ,

I was in the process of manual installation of Chevereto 4.0.9 on Centos 7 with PHP 8.0, MYSQL 5.7, Apache 2.4 downloaded from

https://github.com/chevereto/chevereto/releases/download/4.0.9/4.0.9.zip

However ,t seems that version number is not updated in file app/legacy/load/app.php, under line 12 i.e :
const APP_VERSION = '4.0.8';

it is still 4.0.8.

Due to this under dashboard it shows 4.0.8 :

Screenshot 2023-08-29 at 13-52-08 Chevereto image hosting

Also under database it is not updated under settings table i.e :
(3, 'chevereto_version_installed', '4.0.8', '4.0.8', 'string'),

Could you please check fix this?.

Installed from free v3 to AGPL v4 - now it acts like a single user website?

I'm not sure if this is right, but upgrading from free to the AGPL v4 code from github and it only shows my profile, not any of the other users on the instance?

It doesn't match the screenshots that appear in the repo and trying to even view other users registered on the system is "locked" behind a pro license?

Is all accessible functionality now locked behind the 67$ license or have I just encountered a bug?

Kind regards,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.