Document Microsoft Graph email auth env vars; newest bookmarks first
Deploy with Docker Compose / deploy (push) Successful in 1m4s

Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
2026-09-22 22:55:35 +01:00
co-authored by Claude Code
parent ff186f04a7
commit 49909037db
2 changed files with 21 additions and 2 deletions
+20 -1
View File
@@ -59,8 +59,27 @@ GITEA_RUNNER_NAME=pi-runner
GITEA_RUNNER_REGISTRATION_TOKEN= GITEA_RUNNER_REGISTRATION_TOKEN=
# --- Email ingest (backend) -------------------------------------------------- # --- Email ingest (backend) --------------------------------------------------
# IMAP_PASSWORD should be an app-specific password, not the account password. # EMAIL_BACKEND selects the mail source: "graph" (Microsoft Graph API, OAuth)
# or "imap" (fallback; Microsoft has retired IMAP basic auth for outlook.com,
# so imap+app-password only works with non-Microsoft providers like Gmail).
# For "graph": register an Entra "app registration" for a personal Microsoft
# account at azure.microsoft.com > Microsoft Entra ID > App registrations
# (default tenant = "consumers"); add a delegated Mail.Read permission with
# admin/user consent, and create a client secret. Redirect URI type "Web",
# value must live behind the site's real HTTPS origin, e.g.
# https://<YOUR_DOMAIN>/email/callback (callback route already exists in the
# backend). Backend code exchanges a code there. TenantID must be "consumers"
# for a personal outlook.com account.
# The first sync prints an authorisation URL into the container log; visit it,
# consent, and the refresh token is persisted to backend/token/msgraph_token.json.
# OAuth flow reference: https://learn.microsoft.com/en-us/graph/auth-v2-user
EMAIL_BACKEND= EMAIL_BACKEND=
MSGRAPH_CLIENT_ID=
MSGRAPH_CLIENT_SECRET=
MSGRAPH_TENANT_ID=consumers
MSGRAPH_REDIRECT_URI=
# IMAP_PASSWORD should be an app-specific password, not the account password.
# Only read when EMAIL_BACKEND=imap.
IMAP_HOST= IMAP_HOST=
IMAP_PORT=993 IMAP_PORT=993
IMAP_EMAIL= IMAP_EMAIL=
+1 -1
View File
@@ -51,7 +51,7 @@ func (r *mutationResolver) DeleteBookmark(ctx context.Context, id int) (*models.
// Bookmarks is the resolver for the bookmarks field. // Bookmarks is the resolver for the bookmarks field.
func (r *queryResolver) Bookmarks(ctx context.Context) ([]*models.Bookmark, error) { func (r *queryResolver) Bookmarks(ctx context.Context) ([]*models.Bookmark, error) {
var bookmarks []models.Bookmark var bookmarks []models.Bookmark
if err := r.Store.DB.Order("category ASC, created_at ASC").Find(&bookmarks).Error; err != nil { if err := r.Store.DB.Order("category ASC, created_at DESC").Find(&bookmarks).Error; err != nil {
return nil, err return nil, err
} }
return ptrs(bookmarks), nil return ptrs(bookmarks), nil