Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
caddy + oauth - Immich
I
Immich
•
3y ago
•
7 replies
Gb
caddy + oauth
Hi
,
Im trying to setup oauth with authentik and caddy as a reverse proxy
, however when I enable oauth im greated with a internal server error and no
"login with oauth
" button is populated
.
Everything works with normal user
+ pass login
.
Caddyfile
: REDACTED
{
reverse
proxy 192
.168
.1
.
1
0
:2283
}
chrome logs
:
(anonymous
)
@ indehandle
-error
.fd12a3ed
.
j
s
:1
[handleError
]
: Unable to connect
!
{message
:
'Request failed with status code 500
'
, name
:
'AxiosError
'
, code
:
'ERR
_BAD
_RESPONSE
'
, config
:
{
…
}
, request
: XMLHttpRequest
,
…
}code
:
"ERR
_BAD
_RESPONSE
"config
:
{transitional
:
{
…
}
, transformRequest
: Array
(1
)
, transformResponse
: Array
(1
)
, timeout
: 0
, adapter
:
ƒ
,
…
}adapter
:
ƒ
(u
)data
:
"
{
"
redirectUri
"
:
"
https://REDACTED/auth/login\"}"env
:
{FormData
: null
}headers
:
{Accept
:
'application
/json
, text
/plain
,
/
'
, Content
-Type
:
'application
/json
'
}maxBodyLength
:
-1maxContentLength
:
-1method
:
"post
"timeout
: 0transformRequest
:
[
ƒ
]transformResponse
:
[
ƒ
]transitional
:
{silentJSONParsing
: true
, forcedJSONParsing
: true
, clarifyTimeoutError
: false
}url
:
"
/api
/oauth
/config
"validateStatus
:
ƒ
(r
)xsrfCookieName
:
"XSRF
-TOKEN
"xsrfHeaderName
:
"X
-XSRF
-TOKEN
"
[
[Prototype
]
]
: Objectmessage
:
"Request failed with status code 500
"name
:
"AxiosError
"request
: XMLHttpRequestonabort
:
ƒ
(
)onerror
:
ƒ
(
)onload
: nullonloadend
:
ƒ me
(
)onloadstart
: nullonprogress
: nullonreadystatechange
: nullontimeout
:
ƒ
(
)privateTokenOperationError
: nullreadyState
: 4response
:
"
{
"
statusCode
"
:500
,
"
message
"
:
"
Internal server error
"
}
"responseText
:
"
{
"
statusCode
"
:500
,
"
message
"
:
"
Internal server error
"
}
"responseType
:
"
"responseURL
:
"
https://REDACTED/api/oauth/config"responseXML
: nullstatus
: 500statusText
:
"
"timeout
: 0upload
: XMLHttpRequestUpload
{onloadstart
: null
, onprogress
: null
, onabort
: null
, onerror
: null
, onload
: null
,
…
}withCredentials
: false
[
[Prototype
]
]
: XMLHttpRequestresponse
:
{data
:
{
…
}
, status
: 500
, statusText
:
'
'
, headers
:
{
…
}
, config
:
{
…
}
,
…
}
[
[Prototype
]
]
: Error
Immich
Join
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Immich, Authentik, Caddy with Docker
I
Immich / help-desk-support
11mo ago
Serving immich through caddy on root /
I
Immich / help-desk-support
6mo ago
Caddy Docker with Immich and Authentik
I
Immich / help-desk-support
11mo ago
Authetik OAuth
I
Immich / help-desk-support
9mo ago