mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 03:01:42 +00:00
85 lines
2.5 KiB
Lua
85 lines
2.5 KiB
Lua
--[[
|
|
Sky Phone media configuration
|
|
|
|
This file is loaded on the server only. Keep API keys private and restart
|
|
sky_phone after changing providers, upload limits, or import sources.
|
|
]]
|
|
|
|
Config.Media = {
|
|
GiphyApiKey = "", -- Paste the GIPHY API key here.
|
|
GifPageSize = 24,
|
|
GifRating = "pg-13",
|
|
UrlMaxLength = 2048,
|
|
AllowedGifHosts = { "giphy.com" },
|
|
|
|
FiveManage = {
|
|
ApiKey = "", -- Paste a newly generated FiveManage V3 Media API token here.
|
|
BaseUrl = "https://api.fivemanage.com/api/v3/file",
|
|
RequestTimeoutMs = 10000,
|
|
UploadTimeoutMs = 25000,
|
|
},
|
|
|
|
Import = {
|
|
Enabled = true,
|
|
PageSize = 30,
|
|
MaxSelection = 10,
|
|
MaxPhotoBytes = 15 * 1024 * 1024,
|
|
MaxVideoBytes = 150 * 1024 * 1024,
|
|
RevalidateAfterSeconds = 3600,
|
|
ListActionsPerMinute = 60,
|
|
ImportActionsPerMinute = 20,
|
|
CandidateTtlSeconds = 300,
|
|
ManifestCacheSeconds = 30,
|
|
ManifestMaxBytes = 2 * 1024 * 1024,
|
|
ManifestMaxItems = 5000,
|
|
|
|
Websites = {
|
|
{
|
|
Id = "fivemanage",
|
|
Label = "FiveManage",
|
|
Enabled = true,
|
|
Adapter = "fivemanage",
|
|
Path = "sky_phone/imports",
|
|
MediaTypes = { "photo", "video" },
|
|
-- Direct Gallery links must use one of these hosts or a subdomain.
|
|
AllowedMediaHosts = { "fivemanage.com" },
|
|
},
|
|
|
|
--[[
|
|
{
|
|
Id = "city_media",
|
|
Label = "City Media",
|
|
Enabled = true,
|
|
Adapter = "manifest",
|
|
ManifestUrl = "https://media.example.com/sky-phone/media.json",
|
|
MediaTypes = { "photo", "video" },
|
|
AllowedMediaHosts = { "media.example.com", "cdn.example.com" },
|
|
Auth = {
|
|
Type = "bearer",
|
|
TokenConvar = "sky_phone_city_media_token",
|
|
},
|
|
RequiredAce = "sky_phone.import.city_media",
|
|
},
|
|
]]
|
|
},
|
|
},
|
|
|
|
Wallpaper = {
|
|
-- Shows the verified HTTPS media import directly in the wallpaper picker.
|
|
-- Camera and Photos wallpaper sources are not affected by this setting.
|
|
CustomUploadEnabled = true,
|
|
},
|
|
|
|
Photo = {
|
|
Encoding = "jpg",
|
|
Quality = 0.95,
|
|
},
|
|
|
|
Video = {
|
|
BitrateKbps = 1500,
|
|
},
|
|
|
|
UploadSessionTimeoutMs = 60000,
|
|
PageSize = 30,
|
|
}
|