mirror of
https://github.com/axeloz/filesharing.git
synced 2025-05-06 10:03:55 +02:00
Redirecting / to /upload
This commit is contained in:
parent
46b8593a9d
commit
d812e2f391
2 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,7 @@ The application also uses:
|
|||
- `LOCALE=en` change this to "fr" or "en"
|
||||
- `STORAGE_PATH=` change this wherever you want to store the files
|
||||
- `UPLOAD_MAX_FILESIZE=5M` change this to the value you want (M, G, T, ...). Attention : you must configure your PHP settings too (`post_max_size`, `upload_max_filesize` and `memory_limit`)
|
||||
- generate the Laravel KEY: `php artisan key:generate`
|
||||
- start the Laravel scheduler (it will delete expired bundles of the storage). For example `* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1`
|
||||
|
||||
Use your browser to navigate to your domain name (example: files.yourdomain.com) and **that's it**.
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
|
|
||||
*/
|
||||
|
||||
Route::get('/', function() {
|
||||
return redirect()->route('upload.create');
|
||||
});
|
||||
|
||||
Route::prefix('upload')->middleware(['web', 'upload'])->group(function() {
|
||||
Route::get('/', [
|
||||
'uses' => 'UploadController@create',
|
||||
|
|
Loading…
Add table
Reference in a new issue