You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,11 @@ For non-core options (for example UI options), take a look at [Settings](https:/
15
15
|`TIMEZONE`| The timezone of your photos., requires a named timezone identifier like `Europe/Paris`| system timezone of server |
16
16
|`LYCHEE_UPLOADS`| Path to uploads directory |`uploads/` inside `public/`|
17
17
|`LYCHEE_UPLOADS_URL`| URL to uploads directory, better left empty |`/uploads`|
18
+
|`APP_FORCE_HTTPS`| Force HTTPS on all URLs |`false`|
18
19
|`TRUSTED_PROXIES`| Trusted proxy IP addresses |`null`|
19
20
|`LOG_VIEWER_ENABLED`| Enable log viewer inside Lychee instead of through CLI. |`true`|
20
-
|`LIVEWIRE_ENABLED`| Enable v5 Livewire frontend; set to `false` if the new frontend doesn't work on our installation (this is a **temporary** workaround). |`true`|
21
-
21
+
|`VUEJS_ENABLED`| Enable v6 Livewire frontend; set to `false` if the new frontend doesn't work on our installation (this is a **temporary** workaround). |`true`|
22
+
|`LEGACY_API_ENABLED`| Enable the Legacy API, it will be enabled if `VUEJS_ENABLED` is set to `false`. |`false`|
22
23
23
24
> {note} `APP_URL` must only contain the hostname up to the Top Level Domain (tld) _e.g._ .com, .org etc.
24
25
> If you are using Lychee in a sub folder, specify the path after the tld here in the `APP_DIR` constant.
Copy file name to clipboardExpand all lines: docs/structure.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,13 @@ The `resources` directory contains your views as well as the TypeScript and CSS
31
31
32
32
### The Routes Directory
33
33
The `routes` directory contains all of the route definitions for Lychee. Several route files are included with Lychee:
34
-
`api.php`, `web-admin.php`, `web-install.php`, `web-livewire.php`, and `web.php`.
34
+
`api-v1.php`, `api-v2.php`, `web-admin-v1.php`, `web-admin-v2.php`, `web-install.php`, `web-v1.php`, and `web-v2.php`.
35
+
36
+
This makes the separation between the two REST API:
37
+
-`v1` routes are used by legacy endpoints, i.e. version 4 of Lychee. This is mostly used as POST requests.
38
+
-`v2` routes are used by the Version 6 front-end with VueJs. It makes use of a more proper REST definition with PATCH, POST, GET and DELETE.
39
+
40
+
By default `v1` routes are disabled since version 6.
35
41
36
42
### The Storage Directory
37
43
The `storage` directory contains your compiled Blade templates, file based sessions, file caches, and other files generated by the framework. This directory is segregated into `app`, `framework`, and `logs` directories. The `app` directory may be used to store any files generated by your application. The `framework` directory is used to store framework generated files and caches. Finally, the `logs` directory contains Laravel's log files (useful in case of hard crash).
@@ -53,7 +59,7 @@ The `vendor` directory contains your [Composer][2] dependencies.
53
59
## The App Directory
54
60
The majority of Lychee is housed in the `app` directory. By default, this directory is namespaced under `App` and is autoloaded by Composer using the [PSR-4 autoloading standard][3].
55
61
56
-
The `app` directory contains a variety of additional directories such as `Console`, `Http`, `Livewire`and `Providers`. Think of the `Console`, `Livewire`, and `Http` directories as providing an API into the core of your application. The HTTP protocol and CLI are both mechanisms to interact with Lychee, but do not actually contain application logic. In other words, they are two ways of issuing commands to Lychee. The `Console` directory contains all of the Artisan commands, while the `Http` directory contains your controllers, middleware, and requests. Furthermore the `Livewire` directory contains the serverside code necessary for the new front-end.
62
+
The `app` directory contains a variety of additional directories such as `Console`, `Http`, and `Providers`. Think of the `Console`and `Http` directories as providing an API into the core of your application. The HTTP protocol and CLI are both mechanisms to interact with Lychee, but do not actually contain application logic. In other words, they are two ways of issuing commands to Lychee. The `Console` directory contains all of the Artisan commands, while the `Http` directory contains your controllers, middleware, and requests.
57
63
58
64
### The Console Directory
59
65
The `Console` directory contains all of the custom Artisan commands for Lychee. These commands may be generated using the `make:command` command.
@@ -81,9 +87,6 @@ The `Image` directory contains our image handler. We provide here two ways to ma
81
87
- with GD,
82
88
- with imagick.
83
89
84
-
### The Livewire Directory
85
-
The `Livewire` directory contains the server-side logic for the Livewire front-end. See more [here](livewire.html)
86
-
87
90
### The Metadata Directory
88
91
The `Metatdata` directory contains logic related to data such as Exif information, geodecoding, lychee version, GitHub monitoring...
0 commit comments