Trust proxy headers for OIDC provider
Set proxy: true so oidc-provider reads X-Forwarded-Proto from Traefik and generates https:// endpoint URLs in the discovery document.
This commit is contained in:
parent
a055874680
commit
f43d1bf500
1 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ export async function getOidcProvider() {
|
||||||
_provider = new Provider(issuer, {
|
_provider = new Provider(issuer, {
|
||||||
adapter: MongoAdapter,
|
adapter: MongoAdapter,
|
||||||
|
|
||||||
|
// Trust X-Forwarded-Proto from Traefik reverse proxy
|
||||||
|
proxy: true,
|
||||||
|
|
||||||
clients: [
|
clients: [
|
||||||
{
|
{
|
||||||
client_id: process.env.OIDC_CLIENT_ID || "outline-wiki",
|
client_id: process.env.OIDC_CLIENT_ID || "outline-wiki",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue