Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

1.3 KB
Raw Blame
{
  "identityProviders": [
    {
      "name": "identity-providers/company-sso",
      "type": "OAUTH2",
      "title": "Company SSO",
      "config": {
        "oauth2Config": {
          "clientId": "memos",
          "clientSecret": "${env:OIDC_CLIENT_SECRET}",
          "authUrl": "https://idp.example.com/oauth/authorize",
          "tokenUrl": "https://idp.example.com/oauth/token",
          "userInfoUrl": "https://idp.example.com/oauth/userinfo",
          "scopes": ["openid", "profile", "email"],
          "fieldMapping": { "identifier": "sub", "displayName": "name", "email": "email" }
        }
      }
    }
  ],
  "instanceSettings": [
    { "name": "instance/settings/ACCESS", "accessSetting": { "accessMode": "INSTANCE_ACCESS_MODE_PRIVATE" } },
    {
      "name": "instance/settings/GENERAL",
      "generalSetting": {
        "disallowPasswordAuth": true,
        "disallowUserRegistration": false,
        "customProfile": { "title": "Company Memos" }
      }
    }
  ],
  "users": [
    { "name": "users/admin", "username": "admin", "role": "ADMIN", "password": "${file:/run/secrets/memos-admin-password}" }
  ],
  "linkedIdentities": [
    { "name": "users/admin/linkedIdentities/company-sso", "externalUid": "${env:ADMIN_SSO_SUBJECT}" }
  ],
  "lifecycle": [
    { "resource": "users/admin", "preventDestroy": true, "writeOnlyVersion": 1 }
  ]
}