providers/proxy: add caddy endpoint (#3330)
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -809,6 +809,10 @@ msgstr "Gecachte Richtlinien"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "Gecachte Abfrage, der Oupost hält alle Benutzer und Gruppen im Speicher und aktualisiert sich alle 5 Minuten."
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "Callback URL"
|
||||
@ -4403,6 +4407,7 @@ msgid "Redirect binding"
|
||||
msgstr "Bindings umleiten"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Aktualisieren"
|
||||
|
||||
|
@ -806,6 +806,10 @@ msgstr "Cached policies"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr "Caddy (Standalone)"
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "Callback URL"
|
||||
@ -4475,6 +4479,7 @@ msgid "Redirect binding"
|
||||
msgstr "Redirect binding"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Refresh"
|
||||
|
||||
|
@ -799,6 +799,10 @@ msgstr "Políticas almacenadas en caché"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "Al realizar consultas en caché, el puesto de avanzada mantiene a todos los usuarios y grupos en memoria y se actualizará cada 5 minutos."
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "URL de devolución de llamada"
|
||||
@ -4396,6 +4400,7 @@ msgid "Redirect binding"
|
||||
msgstr "Enlace de redirección"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Actualizar"
|
||||
|
||||
|
@ -805,6 +805,10 @@ msgstr "Politiques mises en cache"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "URL de rappel"
|
||||
@ -4438,6 +4442,7 @@ msgid "Redirect binding"
|
||||
msgstr "Redirection"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Rafraîchir"
|
||||
|
||||
|
@ -796,6 +796,10 @@ msgstr "Zasady w pamięci podręcznej"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "Zbuforowane zapytania, placówka przechowuje w pamięci wszystkich użytkowników i grupy i odświeża się co 5 minut."
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "URL wywołania zwrotnego"
|
||||
@ -4393,6 +4397,7 @@ msgid "Redirect binding"
|
||||
msgstr "Wiązanie przekierowania"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Odśwież"
|
||||
|
||||
|
@ -798,6 +798,10 @@ msgstr ""
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr ""
|
||||
@ -4455,6 +4459,7 @@ msgid "Redirect binding"
|
||||
msgstr ""
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr ""
|
||||
|
||||
|
@ -799,6 +799,10 @@ msgstr "Önbelleğe alınan ilkeler"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "Önbelleğe alınmış sorgulama, üs tüm kullanıcıları ve grupları bellek içinde tutar ve her 5 Dakikada yenileyecektir."
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "Geri arama URL'si"
|
||||
@ -4398,6 +4402,7 @@ msgid "Redirect binding"
|
||||
msgstr "Yeniden yönlendirme bağlama"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "Yenile"
|
||||
|
||||
|
@ -794,6 +794,10 @@ msgstr "缓存策略"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "缓存查询,前哨将所有用户和组保存在内存中,并每 5 分钟刷新一次。"
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "回调 URL"
|
||||
@ -4368,6 +4372,7 @@ msgid "Redirect binding"
|
||||
msgstr "重定向绑定"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "刷新"
|
||||
|
||||
|
@ -796,6 +796,10 @@ msgstr "缓存策略"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "缓存查询,前哨将所有用户和组保存在内存中,并将每5分钟刷新一次。"
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "回调 URL"
|
||||
@ -4374,6 +4378,7 @@ msgid "Redirect binding"
|
||||
msgstr "重定向绑定"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "刷新"
|
||||
|
||||
|
@ -796,6 +796,10 @@ msgstr "缓存策略"
|
||||
msgid "Cached querying, the outpost holds all users and groups in-memory and will refresh every 5 Minutes."
|
||||
msgstr "缓存查询,前哨将所有用户和组保存在内存中,并将每5分钟刷新一次。"
|
||||
|
||||
#: src/pages/providers/proxy/ProxyProviderViewPage.ts
|
||||
msgid "Caddy (Standalone)"
|
||||
msgstr ""
|
||||
|
||||
#: src/pages/sources/oauth/OAuthSourceViewPage.ts
|
||||
msgid "Callback URL"
|
||||
msgstr "回调 URL"
|
||||
@ -4374,6 +4378,7 @@ msgid "Redirect binding"
|
||||
msgstr "重定向绑定"
|
||||
|
||||
#: src/elements/table/Table.ts
|
||||
#: src/elements/user/UserDevicesList.ts
|
||||
msgid "Refresh"
|
||||
msgstr "刷新"
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
import MDCaddyStandalone from "@goauthentik/docs/providers/proxy/_caddy_standalone.md";
|
||||
import MDNginxIngress from "@goauthentik/docs/providers/proxy/_nginx_ingress.md";
|
||||
import MDNginxPM from "@goauthentik/docs/providers/proxy/_nginx_proxy_manager.md";
|
||||
import MDNginxStandalone from "@goauthentik/docs/providers/proxy/_nginx_standalone.md";
|
||||
import MDTraefikCompose from "@goauthentik/docs/providers/proxy/_traefik_compose.md";
|
||||
import MDTraefikIngres from "@goauthentik/docs/providers/proxy/_traefik_ingress.md";
|
||||
import MDTraefikIngress from "@goauthentik/docs/providers/proxy/_traefik_ingress.md";
|
||||
import MDTraefikStandalone from "@goauthentik/docs/providers/proxy/_traefik_standalone.md";
|
||||
import { DEFAULT_CONFIG } from "@goauthentik/web/api/Config";
|
||||
import { EVENT_REFRESH } from "@goauthentik/web/constants";
|
||||
@ -16,6 +17,7 @@ import "@goauthentik/web/elements/buttons/SpinnerButton";
|
||||
import "@goauthentik/web/elements/events/ObjectChangelog";
|
||||
import "@goauthentik/web/pages/providers/RelatedApplicationButton";
|
||||
import "@goauthentik/web/pages/providers/proxy/ProxyProviderForm";
|
||||
import { convertToSlug } from "@goauthentik/web/utils";
|
||||
|
||||
import { t } from "@lingui/macro";
|
||||
|
||||
@ -120,6 +122,50 @@ export class ProxyProviderViewPage extends LitElement {
|
||||
return markdown;
|
||||
}
|
||||
|
||||
renderConfig(): TemplateResult {
|
||||
const serves = [
|
||||
{
|
||||
label: t`Nginx (Ingress)`,
|
||||
md: MDNginxIngress,
|
||||
},
|
||||
{
|
||||
label: t`Nginx (Proxy Manager)`,
|
||||
md: MDNginxPM,
|
||||
},
|
||||
{
|
||||
label: t`Nginx (standalone)`,
|
||||
md: MDNginxStandalone,
|
||||
},
|
||||
{
|
||||
label: t`Traefik (Ingress)`,
|
||||
md: MDTraefikIngress,
|
||||
},
|
||||
{
|
||||
label: t`Traefik (Compose)`,
|
||||
md: MDTraefikCompose,
|
||||
},
|
||||
{
|
||||
label: t`Traefik (Standalone)`,
|
||||
md: MDTraefikStandalone,
|
||||
},
|
||||
{
|
||||
label: t`Caddy (Standalone)`,
|
||||
md: MDCaddyStandalone,
|
||||
},
|
||||
];
|
||||
return html`<ak-tabs pageIdentifier="proxy-setup">
|
||||
${serves.map((server) => {
|
||||
return html`<section
|
||||
slot="page-${convertToSlug(server.label)}"
|
||||
data-tab-title="${server.label}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown .md=${this.renderConfigTemplate(server.md)}></ak-markdown>
|
||||
</section>`;
|
||||
})}</ak-tabs
|
||||
>`;
|
||||
}
|
||||
|
||||
render(): TemplateResult {
|
||||
if (!this.provider) {
|
||||
return html``;
|
||||
@ -257,64 +303,7 @@ export class ProxyProviderViewPage extends LitElement {
|
||||
<div class="pf-c-card__title">${t`Setup`}</div>
|
||||
<div class="pf-c-card__body">
|
||||
${isForward(this.provider?.mode || ProxyMode.Proxy)
|
||||
? html`
|
||||
<ak-tabs pageIdentifier="proxy-setup">
|
||||
<section
|
||||
slot="page-nginx-ingress"
|
||||
data-tab-title="${t`Nginx (Ingress)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDNginxIngress)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
<section
|
||||
slot="page-nginx-proxy-manager"
|
||||
data-tab-title="${t`Nginx (Proxy Manager)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDNginxPM)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
<section
|
||||
slot="page-nginx-standalone"
|
||||
data-tab-title="${t`Nginx (standalone)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDNginxStandalone)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
<section
|
||||
slot="page-traefik-ingress"
|
||||
data-tab-title="${t`Traefik (Ingress)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDTraefikIngres)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
<section
|
||||
slot="page-traefik-compose"
|
||||
data-tab-title="${t`Traefik (Compose)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDTraefikCompose)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
<section
|
||||
slot="page-traefik-standalone"
|
||||
data-tab-title="${t`Traefik (Standalone)`}"
|
||||
class="pf-c-page__main-section pf-m-light pf-m-no-padding-mobile"
|
||||
>
|
||||
<ak-markdown
|
||||
.md=${this.renderConfigTemplate(MDTraefikStandalone)}
|
||||
></ak-markdown>
|
||||
</section>
|
||||
</ak-tabs>
|
||||
`
|
||||
? html` ${this.renderConfig()} `
|
||||
: html` <p>${t`No additional setup is required.`}</p> `}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user