Merge pull request #1356 from drudge/templates/pocket-id

feat: add Pocket ID template
This commit is contained in:
Mauricio Siu
2025-02-23 14:51:53 -06:00
committed by GitHub
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="a" viewBox="0 0 1015 1015"><path d="M506.6,0c209.52,0,379.98,170.45,379.98,379.96,0,82.33-25.9,160.68-74.91,226.54-48.04,64.59-113.78,111.51-190.13,135.71l-21.1,6.7-50.29-248.04,13.91-6.73c45.41-21.95,74.76-68.71,74.76-119.11,0-72.91-59.31-132.23-132.21-132.23s-132.23,59.32-132.23,132.23c0,50.4,29.36,97.16,74.77,119.11l13.65,6.61-81.01,499.24h-226.36V0h351.18Z"/><style>@media (prefers-color-scheme:dark){#a path{fill:#fff}}@media (prefers-color-scheme:light){#a path{fill:#000}}</style></svg>

After

Width:  |  Height:  |  Size: 539 B

View File

@@ -0,0 +1,21 @@
services:
pocket-id:
image: ghcr.io/pocket-id/pocket-id:v0.35.1
restart: unless-stopped
environment:
- PUBLIC_UI_CONFIG_DISABLED
- PUBLIC_APP_URL
- TRUST_PROXY
ports:
- 80
volumes:
- pocket-id-data:/app/backend/data
healthcheck:
test: "curl -f http://localhost/health"
interval: 1m30s
timeout: 5s
retries: 2
start_period: 10s
volumes:
pocket-id-data:

View File

@@ -0,0 +1,29 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);
const domains: DomainSchema[] = [
{
host: mainDomain,
port: 80,
serviceName: "pocket-id",
},
];
const envs = [
"PUBLIC_UI_CONFIG_DISABLED=false",
`PUBLIC_APP_URL=http://${mainDomain}`,
"TRUST_PROXY=true",
];
return {
domains,
envs,
};
}

View File

@@ -1123,6 +1123,21 @@ export const templates: TemplateData[] = [
tags: ["identity", "auth"],
load: () => import("./logto/index").then((m) => m.generate),
},
{
id: "pocket-id",
name: "Pocket ID",
version: "0.35.1",
description:
"A simple and easy-to-use OIDC provider that allows users to authenticate with their passkeys to your services.",
logo: "pocket-id.svg",
links: {
github: "https://github.com/pocket-id/pocket-id",
website: "https://pocket-id.org/",
docs: "https://pocket-id.org/docs",
},
tags: ["identity", "auth"],
load: () => import("./pocket-id/index").then((m) => m.generate),
},
{
id: "penpot",
name: "Penpot",