Michael Mayer
239708f00f
Config: Add options to configure CORS origin, headers and methods #3931
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-16 12:14:06 +01:00
Michael Mayer
c5f6a28448
Config: Add PHOTOPRISM_HTTP_CORS option for CDN users #3931 #3940
...
In addition, the Access-Control-Allow-Origin header is set to the same
URL if an Origin header is found in the request (experimental).
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-15 13:06:27 +01:00
Michael Mayer
481c207897
Cache: Refactor internal/ttl package
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-10 10:26:38 +01:00
Michael Mayer
5b4b57e3bf
Config: Improve docs and tests for Unix socket support #2337 #3595
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-08-16 10:14:19 +02:00
Michael Mayer
a287830d1f
Videos: Allow setting a lower TTL for caching video content #3631
...
Adds the new "--http-video-maxage SECONDS" config option.
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-08-15 11:06:43 +02:00
Michael Mayer
c82a4b2287
HTTP: Refactor Unix socket support #2337 #3595
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-08-14 10:43:05 +02:00
Silver Bullet
2bf50082f5
Backend: Support listening on Unix Socket #2337 #3595
...
When HTTP listening address starts with unix: and contains /, listen
at given path instead of a TCP socket.
TLS or AutoTLS will not work since there is no TLS layer when using
the unix domain socket.
2023-08-14 10:00:35 +02:00
Michael Mayer
f63ac04956
Config: Rename HttpCacheTTL to HttpCacheMaxAge #3297
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 20:37:07 +01:00
Michael Mayer
010d243d14
Config: Change cache TTL default from 2630000 to 2592000 #3297
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 13:13:56 +01:00
Michael Mayer
286f06d894
Config: Add options for HTTP cache control #3297
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-20 11:40:46 +01:00
Michael Mayer
59da5037e6
Server: Add Error 404 Not Found template and change ext to .gohtml #840
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-18 22:19:41 +02:00
Michael Mayer
f98aa619ec
Security: Disable HTTPS redirect by default #98
...
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-10-13 23:44:51 +02:00
Michael Mayer
92e6c4fe1e
Download: Add Disabled, Originals, MediaRaw & MediaSidecar Flags #2234
...
Extends DownloadSettings with 4 additional options:
- Name: File name pattern for downloaded files (existed)
- Disabled: Disables downloads
- Originals: Only download files stored in "originals" folder
- MediaRaw: Include RAW image files
- MediaSidecar: Include metadata sidecar files (JSON, XMP, YAML)
2022-04-15 09:42:07 +02:00