mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: normalize external domain (#12831)
chore: normalize external domain
This commit is contained in:
parent
9a4a320cfb
commit
a7719a94fc
3 changed files with 22 additions and 5 deletions
|
|
@ -120,6 +120,10 @@ export class SystemConfigCore {
|
|||
}
|
||||
}
|
||||
|
||||
if (config.server.externalDomain.length > 0) {
|
||||
config.server.externalDomain = new URL(config.server.externalDomain).origin;
|
||||
}
|
||||
|
||||
if (!config.ffmpeg.acceptedVideoCodecs.includes(config.ffmpeg.targetVideoCodec)) {
|
||||
config.ffmpeg.acceptedVideoCodecs.push(config.ffmpeg.targetVideoCodec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue