GithubHelp home page GithubHelp logo

chewbaka69 / plexshare Goto Github PK

View Code? Open in Web Editor NEW
91.0 18.0 15.0 18.99 MB

Web Application standalone that provide management of local users, many PlexServer and it's libraries.

Home Page: https://chewbaka69.github.io/PlexShare/

License: GNU General Public License v3.0

PHP 17.61% CSS 0.07% JavaScript 81.75% Hack 0.53% Dockerfile 0.03%
plex management share user-management users plex-media-server plexmediaserver plexserver mediaserver php

plexshare's Introduction

PHP PHP Extension Database PlexServer

PlexShare

Web Application standalone that provide the management of local users, many server and the libraries.

V2 started

Why starting a V2, while V1 is not Finish? Because the technology use is no more what i want for this app.

So the V2 will use NextJS and Laravel New design for the FrontEnd and new Code for the Backend :)

Description

With this web application, anyone can create an account directly this app. Every body can add his PlexServer to the list. When you are connected by default you have access to all servers. But the admin can manage permission by user or by library like limit of number streaming, the quality and other

With only one interface and without plex.tv registration, everybody can have access to the libraries of all the servers you have registered.

Flyer

Features

  • Register and Login without plex.tv account
  • Manage some PlexServer to share theirs libraries
  • Manage permission to limit access to the users

Tehcnologies

  • MySQL
  • PHP
  • Framework FuelPHP 1.8
  • Bootstrap
  • jQuery
  • jQuery widget pwstrength Github
  • Video Player Clappr

Preview

SCREENSHOT

Installation And Support

Wiki

Todo-List

TODO LIST

Licence

This is free software under the GPL v3 open source license. Feel free to do with it what you wish, but any modification must be open sourced. A copy of the license is included.

plexshare's People

Contributors

chewbaka69 avatar dependabot[bot] avatar silex-fabrice avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plexshare's Issues

Install Process (Docker) - Invalid basepath when saving MySQL data

Hi there,

Describe the bug
Unable to save database settings due to an error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://localhost/install#SQL
  2. Fill info (or not)
  3. Click on save
  4. See error

400 Bad Request from http://localhost/rest/install/config.json
{"error":true,"message":"Invalid basepath: \u0022\/app\/fuel\/core\/config\/\u0022, cannot update a file at this location."}

Filling example:

host: 
127.0.0.1
port: 
63897
database: 
plexshare
prefix: 
pshare_
username: 
root
password: 
password123

Expected behavior
Next step or more precise error.

Screenshots
image

Tried on Docker with Linux/Windows, with docker compose.

docker project

Does this have a docker project? If not I'll make one once I get it working.

Docker image

Hi,

Is it possible to create a docker image of this ?

Also, is it possible to share , remote plex shares with this ?

Launch creation table error

got a message "SQLSTATE[HY000] [2002] No such file or directory" when trying to create tables.
in the logs, I found this "SQLSTATE[HY000] [2002] No such file or directory in /app/fuel/core/classes/database/pdo/connection.php on line 86" couldn't find that file...
db is created but it looks like it can't find it

thanks

Capture d’écran 2022-11-24 130013
Capture d’écran 2022-11-24 130059

Feat Request: Expose more ENV vars for docker

Hi there,
It could be nice to expose more env vars for Docker,
So we can pre-populate config fields of install directly with custom or use default if empty/not exist.

Vars to expose:

  • DB_HOST (text)
  • DB_PORT (text)
  • DB_NAME (text)
  • DB_PREFIX (text)
  • DB_USER (text)
  • DB_PASS (text)
  • ADMIN_EMAIL (text)
  • ADMIN_USER (text)
  • ADMIN_PASS (text)
  • PLEX_SSL (bool)
  • PLEX_URL (text)
  • PLEX_PORT (text)
  • PLEX_TOKEN (text)

Thanks ! :)

PHP MySQL Extension not detected

When checking configuration, the config didn't detect PHP MySQL Extension. The php_mysql is installed.

OS: Ubuntu 20.04
PHP version: 7.4

Screenshot from /install:
image

Screenshot from info.php:
image
image

When I proceed to the table creation, it stuck on "Please wait we are creating your tables!"

When I checked log file located in /var/www/plexshare/fuel/app/logs/2021/05, the following ERROR appeared multiple times:

ERROR - 2021-05-15 02:10:01 --> 0 - invalid data source name in /var/www/plexshare/fuel/core/classes/database/pdo/connection.php on line 86
ERROR - 2021-05-15 02:10:01 --> 0 - invalid data source name in /var/www/plexshare/fuel/core/classes/database/pdo/connection.php on line 512
ERROR - 2021-05-15 02:20:01 --> 2 - Invalid argument supplied for foreach() in /var/www/plexshare/fuel/app/tasks/server.php on line 22
ERROR - 2021-05-15 02:20:01 --> 2 - Invalid argument supplied for foreach() in /var/www/plexshare/fuel/app/tasks/server.php on line 189

In addition, I tried to complete the setup, but encounter with the following error when trying to setup Server config:
image

Is this project dead? I can't seem to get it to work and need help

Dont Forget to set your ENVIRONMENT variable to DEVELOPMENT

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

issue with docker installation

executed the docker install as per your docs and the docker fails to build below is an export of the error
brilliant project

Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in
load_entry_point('docker-compose==1.17.1', 'console_scripts', 'docker-compose')()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main
command()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 121, in perform_command
handler(command, command_options)
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 952, in up
start=not no_start
File "/usr/lib/python2.7/dist-packages/compose/project.py", line 431, in up
svc.ensure_image_exists(do_build=do_build)
File "/usr/lib/python2.7/dist-packages/compose/service.py", line 318, in ensure_image_exists
self.build()
File "/usr/lib/python2.7/dist-packages/compose/service.py", line 923, in build
shmsize=parse_bytes(build_opts.get('shm_size')) if build_opts.get('shm_size') else None,
TypeError: build() got an unexpected keyword argument 'stream'

Completed docker install throwing Fuel PHP error

I have installed with docker-compose via your instructions. The install was successful with no error messages. When trying to browse on port 80 we see the following message:

No composer autoloader found. Please run composer to install the FuelPHP framework dependencies first!

Is this something I need to install inside the docker container first?

I'm running on Ubuntu 18.04

Here is a snippet of the logs leading up to the error:

2022-07-27 14:03:54,061 INFO RPC interface 'supervisor' initialized
2022-07-27 14:03:54,061 INFO supervisord started with pid 1
2022-07-27 14:03:55,075 INFO spawned: 'syslogd' with pid 45
2022-07-27 14:03:55,085 INFO spawned: 'nginxd' with pid 46
2022-07-27 14:03:55,088 INFO spawned: 'php-fpmd' with pid 47
2022-07-27 14:03:55,090 INFO spawned: 'crond' with pid 48
-> Executing /opt/docker/bin/service.d/syslog-ng.d//10-init.sh
2022-07-27 14:03:55,097 INFO success: nginxd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-07-27 14:03:55,097 INFO success: php-fpmd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-07-27 14:03:55,097 INFO success: crond entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
-> Executing /opt/docker/bin/service.d/nginx.d//10-init.sh
-> Executing /opt/docker/bin/service.d/cron.d//10-init.sh
-> Executing /opt/docker/bin/service.d/php-fpm.d//10-init.sh
Setting php-fpm user to application
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /opt/docker/etc/nginx/vhost.ssl.conf:1
[2022-07-27T14:03:55.117044] WARNING: With use-dns(no), dns-cache() will be forced to 'no' too!;
[27-Jul-2022 14:03:55] NOTICE: fpm is running, pid 47
[27-Jul-2022 14:03:55] NOTICE: ready to handle connections
2022-07-27 14:03:56,200 INFO success: syslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
No composer autoloader found. Please run composer to install the FuelPHP framework dependencies first!
No composer autoloader found. Please run composer to install the FuelPHP framework dependencies first!

Bug: User/Pass incorrect

Hi,
Seems strange, even if install runs fine, user/password is incorrect at login page after that.
Tried also with simple duo like admin/test, but no luck.
Maybe a problem somewhere ?

Nothing relevant in logs, nothing in browser console nor docker logs.
image

Feat Request: Init install via CLI

It could be great to be able to init install via CLI,
So all docker / manual way could be entirely automated :)

Suggest something like:
docker exec --user application plexshare php install:init --no-interaction

With the last issue: #20
All these vars can be used (or with an existing config file)

Thanks !

Install Process (Docker) - Wrong permission for app o/

Hey @Chewbaka69 thank you again for your recent edits,
As I've seen, you copy your app directory in the image,
⚠️ But it's done as root and the user of docker image is application (1000:1000)
Cf. https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html#webdevops-php-nginx

So we are still unable to save mysql config file with error:
{"error":true,"message":"No write access to: \u0022\/app\/fuel\/app\/config\/\u0022, cannot update a file."}

Solution:
Add USER instruction to Dockerfile to switch to "application" user/group (UID: 1000 / GUID:1000)
Cf. https://www.geeksforgeeks.org/docker-user-instruction/

or add a RUN chown -vR 1000:1000 /app/fuel/app at end

Workaround:
docker exec plexshare /bin/bash -c 'chown -vR 1000:1000 /app/fuel/app'

Thanks :)

Depoyment

Could I get some help deploying this? Where is the config located? This looks amazing!

Docker - Mixed Ressources HTTPS/HTTP

Hello,
Despite the fact we run plexshare behind a proxy with a domain / SSL certificate.
It seems that some ressources are still loaded (requested) via http.

Mixed Content: The page at 'https://<domain>.fr/install' was loaded over HTTPS, but requested an insecure stylesheet 'http://<domain>.fr/assets/css/normalize.css?1668119069'. This content should also be served over HTTPS.
Mixed Content: The page at 'https://<domain>.fr/install' was loaded over HTTPS, but requested an insecure stylesheet 'http://<domain>.fr/assets/css/plex.css?1668119069'. This content should also be served over HTTPS.
Mixed Content: The page at 'https://<domain>.fr/install' was loaded over HTTPS, but requested an insecure script 'http://<domain>.fr/assets/js/plex_alert.js?1668119069'. This content should also be served over HTTPS.

Solutions ?

  • Misconfig of nginx ?
  • Possibility to set a BASE_URL via env var :)

Thanks

Fuel\Core\PhpErrorException [ Notice ]: Undefined index: hash

Describe the bug
After install going to login presents Fuel\Core\PhpErrorException [ Notice ]:
Undefined index: hash
To Reproduce
Steps to reproduce the behavior:

  1. Install the application'
  2. Go to login page

Expected behavior
Website loads properly

Screenshots
image

Docker support

Will this repo repack in docker to release for easier maintenance and installation?

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.