mirror of
https://github.com/filegator/filegator.git
synced 2025-08-13 22:04:05 +02:00
docs upd
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
## Default Auth service
|
||||
By default, users are stored in json file. For some use-cases, this is more than enough. It also makes this app lightweight since no database is required.
|
||||
|
||||
Default handler accepts only file name parameter. This file should be writable by the server.
|
||||
|
||||
```
|
||||
'Filegator\Services\Auth\AuthInterface' => [
|
||||
'handler' => '\Filegator\Services\Auth\Adapters\JsonFile',
|
||||
'config' => [
|
||||
'file' => __DIR__.'/private/users.json',
|
||||
],
|
||||
],
|
||||
|
||||
```
|
||||
|
||||
## Configuring Auth service to use database
|
||||
You can store your users inside mysql database (default is json file).
|
||||
You can use mysql database to store your users.
|
||||
|
||||
First, create a table ```users``` with this sql:
|
||||
```
|
||||
@@ -39,3 +54,4 @@ At the end, open ```configuration.php``` and update Auth handler under section `
|
||||
],
|
||||
```
|
||||
|
||||
Don't forget to enter correct mysql username, password, and database.
|
||||
|
@@ -18,7 +18,7 @@ You can add additional html to the head and body like this:
|
||||
```
|
||||
|
||||
## Frontend tweaks
|
||||
To change default color scheme and other options, edit ```/frontend/App.vue``` and recompile with npm.
|
||||
To change default color scheme and other options, edit ```/frontend/App.vue```. When you're done, recompile with ```npm run build```.
|
||||
|
||||
```
|
||||
// Primary color
|
||||
|
Reference in New Issue
Block a user