Skip to content

Commit 6476e9e

Browse files
More changes
due removal config and src folder
1 parent 7801598 commit 6476e9e

File tree

6 files changed

+5
-21
lines changed

6 files changed

+5
-21
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
run: composer install --prefer-dist --no-progress
3131

3232
- name: Run PHPstan
33-
run: vendor/bin/phpstan analyse --error-format=github src/ public/
33+
run: vendor/bin/phpstan analyse --error-format=github public/

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,4 @@ RUN /usr/local/bin/composer create-project michaelbelgium/youtube-to-mp3 . &&\
2121
# Ensure permissions won't be a problem
2222
RUN mkdir /var/www/.cache/ && chmod 777 /var/www/ -R
2323

24-
# set new entrypoint and restore default command (apache). Entrypoint ensures
25-
# the API key is written to src/Config.php on start, if not already set.
26-
COPY docker-entrypoint.sh .
27-
RUN chmod +x docker-entrypoint.sh
28-
ENTRYPOINT ["./docker-entrypoint.sh"]
2924
CMD ["apache2-foreground"]

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ First we install the dependencies on the server, then website.
2626

2727
## Configuration
2828

29-
Setting options are available in [`src/Config.php`](https://github.com/MichaelBelgium/Youtube-API/blob/master/src/Config.php)
29+
To configure everything, you need to create a copy of `.env.example` as `.env`. This file should contain your settings.
30+
For more information on the settings, check the comments in the `.env` or `.env.example` file.
3031

3132
## Documentation
3233

3334
Check out the [wiki](https://github.com/MichaelBelgium/Youtube-API/wiki) for more docs.
3435

3536
## Docker
36-
You can deploy this API using `docker-compose.yml` and the `Dockerfile` to build from. Please add your google API Key to the `.env` file.
37+
You can deploy this project using `docker-compose.yml` and the `Dockerfile` to build from. Please add your google API Key to the `.env` file.
3738
It will expose port 80 from the container, out to port 80 on the host. This can also be changed in `.env` under HOST_PORT. The docker image uses yt-dlp.
3839

3940
### How to run with docker-compose
@@ -50,5 +51,3 @@ docker-compose down
5051
docker-compose down -v
5152
```
5253

53-
### Changing API Key?
54-
If you are changing your API key, the change will not reflect until you have removed the attached docker volume and restarted the container. Another option is to enter the container and go to `src/Config.php` and manually change it, or mount the config in as a separate volume.

composer.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"email": "[email protected]"
1717
}
1818
],
19-
"autoload": {
20-
"psr-4": {
21-
"MichaelBelgium\\YoutubeConverter\\": "src/"
22-
}
23-
},
2419
"require-dev": {
2520
"phpstan/phpstan": "^2.0"
2621
},

docker-entrypoint.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

public/logs/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
if (!env('ENABLE_LOG', false))
55
{
66
http_response_code(404);
7-
die('Logging is disabled. Please enable it in the config file to view this page.');
7+
die('Logging is disabled.');
88
}
99

1010
$files = glob(__DIR__ . '/*.log');

0 commit comments

Comments
 (0)