Update theme

This commit is contained in:
Knah Tsaeb 2024-09-18 10:02:32 +02:00
parent f811b8c499
commit c72f8b696e

View file

@ -99,36 +99,73 @@ You can use a web interface (if option "use web gui" is set to true), https://sh
Or you can modify config file /datas/config.json. Or you can modify config file /datas/config.json.
```json #### Accept only request from 127.0.0.1
{
"onlyLocalServer": true,
"webPage": false,
"log": true,
"alwaysMakePdf": false,
"icoSize": 48,
"expireCache": 12,
"maxGenPerBatch": 5,
"permitType": [],
"password": null,
"key": null,
"chromePath": null,
"fileFormat": "jpeg"
}
```
| Option | Type | Default | Description | Default : true
| --- | --- | --- | --- |
| onlyLocalServer | bool | true | ShoShot only work for local machine, return 404 if use with remote machine | ShoShot only work for local machine, return 404 if use with remote machine.
| webPage | bool | false | Soshot only work with endpoint /api. Return 404 if not |
| log | bool | true | Not implemented yet | #### Use web gui
| alwaysMakePdf | bool | false | If true, SoShot make a complete webshot and PDF of page |
| icoSize | int | 48 | Define size of favicon | Default : false
| expireCache | int | 12 | Not implemented yet |
| permitType | array | null | Select authorized size or type of webshot | Soshot only work with endpoint /api. Return 404 if endpoint is not /api
| maxGenPerBatch | int | 5 | Foreach cron task as launch, SoShot make 5 webshot |
| key | string | 12 | !!! DANGER !!! If you change key, all previous generation will be invalid. Soshot re make all previous generationt | #### Use log
| password | string | null | Password for admin interface. No min or max character |
| chromePath | string | null | If path of Chrome/Chromium is not in PATH, you can define here | Default : true
Not implemented yet.
#### Always make PDF
Default : false
If true, SoShot make a complete webshot and PDF of page.
#### Favicon size
Default : 48
Define size of favicon.
#### Permit type of webshot
Default : none
Select authorized size or type of webshot.
#### Cache expiration (for web GUI) in hour
Default : 12
Not implemented yet.
#### Maximum work per batch
Default : 5
Foreach cron task as launch, SoShot make 5 webshot.
#### Api key
Default : random string, lenght 12
!!! DANGER !!!
If you change key, all previous generation will be invalid. Soshot re make all previous generation.
#### Password
Default : null
Password for admin interface. No min or max character.
#### Chrome path
Default : empty
If path of Chrome/Chromium is not in PATH, you can define here.
## Usage ## Usage