Use root IndieAuth URLs to fix continue redirect
This commit is contained in:
+10
-8
@@ -1,9 +1,11 @@
|
|||||||
import "dotenv/config";
|
import "dotenv/config";
|
||||||
|
|
||||||
const rawAdminUrl =
|
const rawApplicationUrl =
|
||||||
process.env.INDIEKIT_ADMIN_URL || "https://blog.giersig.eu/admin/";
|
process.env.INDIEKIT_APPLICATION_URL ||
|
||||||
const adminUrl = new URL(
|
process.env.INDIEKIT_PUBLIC_URL ||
|
||||||
rawAdminUrl.endsWith("/") ? rawAdminUrl : `${rawAdminUrl}/`,
|
"https://blog.giersig.eu/";
|
||||||
|
const applicationUrl = new URL(
|
||||||
|
rawApplicationUrl.endsWith("/") ? rawApplicationUrl : `${rawApplicationUrl}/`,
|
||||||
).href;
|
).href;
|
||||||
|
|
||||||
const mongoUsername =
|
const mongoUsername =
|
||||||
@@ -32,10 +34,10 @@ export default {
|
|||||||
debug: "indiekit:*",
|
debug: "indiekit:*",
|
||||||
application: {
|
application: {
|
||||||
name: "Indiekit",
|
name: "Indiekit",
|
||||||
url: adminUrl,
|
url: applicationUrl,
|
||||||
authorizationEndpoint: new URL("auth", adminUrl).href,
|
authorizationEndpoint: new URL("auth", applicationUrl).href,
|
||||||
introspectionEndpoint: new URL("auth/introspect", adminUrl).href,
|
introspectionEndpoint: new URL("auth/introspect", applicationUrl).href,
|
||||||
tokenEndpoint: new URL("auth/token", adminUrl).href,
|
tokenEndpoint: new URL("auth/token", applicationUrl).href,
|
||||||
mongodbUrl: mongoUrl,
|
mongodbUrl: mongoUrl,
|
||||||
},
|
},
|
||||||
publication: {
|
publication: {
|
||||||
|
|||||||
Reference in New Issue
Block a user