Commit Graph

1592 Commits

Author SHA1 Message Date
Pierre Rudloff 342b8c4a42 Use secure session cookies (fixes #321) 2020-10-21 23:04:29 +02:00
Pierre Rudloff de8c5e5dc7 Convert SessionManager to a factory class 2020-10-21 22:48:05 +02:00
Pierre Rudloff 5b0ee7651b Remove Config dependency on LocaleManager 2020-10-21 22:38:09 +02:00
Pierre Rudloff 5c75dc2bb0 Update locale template 2020-10-21 22:31:28 +02:00
Pierre Rudloff 21964f84ba Fix middleware order
So the base path is changed before other middlewares use it
2020-10-20 23:49:23 +02:00
Pierre Rudloff e9cee39673 Allow manifest in CSP 2020-10-20 23:32:16 +02:00
Pierre Rudloff 0a220d4d8e Move factory classes to a subfolder 2020-10-20 23:29:50 +02:00
Pierre Rudloff 123a6c5ad9 Move middleware to a subfolder 2020-10-20 23:17:22 +02:00
Pierre Rudloff 496ac212e2 Set Link header in PHP so it can work in a subfolder 2020-10-20 23:10:33 +02:00
Pierre Rudloff bd61320cfc Lint 2020-10-20 22:34:53 +02:00
Pierre Rudloff e06a96b5d2 Merge branch 'master' into develop 2020-10-20 01:26:56 +02:00
Pierre Rudloff 9a12a2d13b Don't install open-sans in vendor 2020-10-20 01:24:36 +02:00
Pierre Rudloff 4bcf9566ad Improve CSP 2020-10-20 00:57:26 +02:00
Pierre Rudloff 3407e4fcdd Merge tag '3.0.0-beta2' into develop
Changes since the latest beta:

Classes have been reorganized in order to simplify PSR-4 loading
youtube-dl and ffmpeg commands are now logged when debug mode is enabled
The Config and LocaleManager classes now use a factory pattern instead of a singleton
404 and 405 error pages now have the same style as the other pages
The new "defaultAudio" option allows converting to audio by default (thanks to @bellington3)
The Heroku build now uses Python 3 (thanks to @telegrambotdev)
The app now supports the container Heroku stack (thanks to @telegrambotdev)
The new "convertSeek" option allows disabling seeking when converting to audio (thanks to @bellington3)
Exceptions are now logged
AllTube can now run correctly behind a reverse proxy with a custom path or port (thanks to @bellington3)
2020-10-20 00:49:22 +02:00
Pierre Rudloff e97573922d Merge branch 'release-3.0.0-beta2' 2020-10-20 00:38:38 +02:00
Pierre Rudloff f29a61f182 Upgrade pretty-package-versions to 1.5
So we can have a cleaner way to get the root package version
2020-10-20 00:22:34 +02:00
Pierre Rudloff 22bcbbb9ae Upgrade grumphp to 1.0
So tests can be run in parallel
2020-10-20 00:16:56 +02:00
Pierre Rudloff 1d5a81ad8c Don't override the VarDumper styles 2020-10-20 00:06:25 +02:00
Pierre Rudloff 1da8bb55dc Don't preload fonts.css, it does not exist anymore 2020-10-19 23:59:23 +02:00
Pierre Rudloff 561b6c8370 Make the CSP compatible with debug tools 2020-10-19 23:59:23 +02:00
Pierre Rudloff e2560cd9cb Code cleanup 2020-10-19 22:29:30 +02:00
Pierre Rudloff da93835ea2 Fix error when X-Forwarded-Path is not defined 2020-10-19 22:20:19 +02:00
bellington3 c5298dd24b
Provide basePath support (#309)
* Provide basePath support

To be able to serve the application via a reverse proxy in a subfolder
smarty needs to be aware of the basepath if any.

* Provide basepath support via X-Forwarded headers

* Fix warnings

* Review adjustments

* Provide support X-Forwarded-Host header

* Use $uri in view factory directly

* Use middleware to set basepath from X-Forwarded-Path header

* Fix invalid type hint in RouterPathMiddleware

* Add "X-Forwarded-Host" to README
2020-10-19 22:18:03 +02:00
Pierre Rudloff 234ecc2c6d Log handled exceptions 2020-10-18 13:20:06 +02:00
Pierre Rudloff 07f19a80f4 Improve fallback error handling 2020-10-18 13:20:06 +02:00
Pierre Rudloff 9becaeaabe Fix uglyUrls 2020-10-18 00:59:19 +02:00
Pierre Rudloff fe80308610 Update alltube-library 2020-10-17 22:51:39 +02:00
Pierre Rudloff 15636aa435 Stop using a singleton for LocaleManager (#298) 2020-10-17 22:36:03 +02:00
Pierre Rudloff f5045b3ae7 Lint 2020-10-17 22:22:17 +02:00
Pierre Rudloff fc6bf472b2 Stop using deprecated constant 2020-10-17 22:18:58 +02:00
Pierre Rudloff 651c5c3d90 Fix test
We now return a 403 status code when a password is needed
2020-10-17 22:13:28 +02:00
Pierre Rudloff 50ea02cf04 Format should be a string 2020-10-17 22:09:01 +02:00
Pierre Rudloff 7e2afd8221 Stop using a singleton for Config (#298) 2020-10-17 22:07:42 +02:00
Pierre Rudloff 6fc294afbe Use array_merge() instead of +=
To avoid overriding items
2020-10-17 15:09:34 +02:00
bellington3 83863bd66c
Provide config toggle to disable the 'convert seek' function (#311)
* Provide config toggle to disable the 'convert seek' function in the frontend

* Add convertSeek config option to config.example

* Only send from/to if convertSeek is activated
2020-10-17 14:14:36 +02:00
NOOB BOTS bfdb349a2b
heroku-docker-fix (#318)
* Fixed heroku docker startup

moved to resources folder for clean environment

* added heroku.yml for Docker deployment to heroku

* Update heroku.yml

fixed correct executing path

* Update heroku-docker-start.sh

* Update heroku.yml

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>
2020-10-13 20:37:31 +02:00
Pierre Rudloff 5ee9d457b2 Upgrade youtube-dl to 2020.09 (fixes #300) 2020-10-10 23:05:08 +02:00
NOOB BOTS 79ec6aee09
migrating to python 3 (#312)
* migrating to python 3

python2 is going obsolete soon.so a small change to use python3 in heroku

* changed python version
2020-10-10 13:34:01 +02:00
Pierre Rudloff 8ab2ed838b Upgrade composer-dangling-locked-deps to 0.2 2020-10-09 23:38:23 +02:00
bellington3 2e8350ce1a
Provide config toggle to set 'audio' conversion on as default (#310)
* Provide config toggle to set 'audio' conversion on as default

* Fix git cherry pick mistake

* Update templates/index.tpl

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>

* Add default audio config option to config.example

Co-authored-by: Pierre Rudloff <contact@rudloff.pro>
2020-09-30 00:07:20 +02:00
Pierre Rudloff f9aab3c404 Lint 2020-09-27 19:56:19 +02:00
Pierre Rudloff 4bd121cda2 Disable timeout for "composer test" 2020-09-27 19:50:12 +02:00
Pierre Rudloff c1c65c507c Merge branch 'master' into develop 2020-09-27 17:52:51 +02:00
Pierre Rudloff 7f934ae8c9 Add some rules for pull requests 2020-09-27 17:52:27 +02:00
Pierre Rudloff 8d15fbdda2 Lint 2020-09-27 16:06:49 +02:00
Pierre Rudloff d38b1cd9aa composer-dangling-locked-deps 2020-09-01 12:47:06 +02:00
Pierre Rudloff 3ba720dce0 Get open-sans from Packagist
So we can stop requiring Asset Packagist
2020-07-20 23:04:03 +02:00
Pierre Rudloff 2dcd1239a4 Remove dangling dependencies 2020-07-20 22:33:53 +02:00
Pierre Rudloff 2aac009a1e Fix ControllerTest 2020-07-15 23:38:23 +02:00
Pierre Rudloff b6b4dad2ec Custom 404 and 405 error pages 2020-07-15 23:17:23 +02:00