mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Run the instance in private mode when instance_url is not configured: the API rejects anonymous requests except the auth-bootstrap set (sign-in, token refresh, instance profile/settings, SSO providers, share-link access) plus first-run user creation, and the web UI redirects anonymous visitors to /auth instead of /explore. Setting instance_url keeps the current public behavior. Access tokens and personal access tokens are never gated. Enforcement lives in a shared Authorizer used by both the Connect interceptor and the gRPC-gateway middleware; the file server applies the same rule to public-memo attachments and avatars. Also merges the duplicated Authenticate/AuthenticateToUser token dispatch behind resolveBearer, dedups the AuthContext unauthenticated state, extracts the redirect decision into a pure shouldGatePrivateInstance helper, and prints the access mode at startup. |
7 days ago | |
|---|---|---|
| .. | ||
| test | 7 days ago | |
| acl_config.go | 7 days ago | |
| acl_config_test.go | 7 days ago | |
| ai_service.go | 2 months ago | |
| attachment_exif_test.go | 3 months ago | |
| attachment_motion.go | ||
| attachment_service.go | 3 months ago | |
| auth_service.go | 2 months ago | |
| auth_service_client_info_test.go | 3 months ago | |
| authz.go | 7 days ago | |
| authz_test.go | 7 days ago | |
| common.go | 3 months ago | |
| common_test.go | 3 months ago | |
| connect_handler.go | ||
| connect_interceptors.go | 7 days ago | |
| connect_interceptors_test.go | 1 month ago | |
| connect_services.go | 2 weeks ago | |
| header_carrier.go | ||
| health_service.go | ||
| idp_service.go | ||
| instance_service.go | 3 weeks ago | |
| instance_stats.go | 2 months ago | |
| instance_stats_test.go | 2 months ago | |
| link_metadata_test.go | 2 months ago | |
| memo_attachment_service.go | 2 months ago | |
| memo_batch_helpers.go | ||
| memo_mention_helpers.go | 2 months ago | |
| memo_relation_service.go | ||
| memo_service.go | 1 week ago | |
| memo_service_converter.go | 3 months ago | |
| memo_service_filter.go | ||
| memo_share_service.go | 3 months ago | |
| memo_update_helpers.go | ||
| notification_email.go | 2 months ago | |
| reaction_service.go | ||
| resource_name.go | 3 months ago | |
| shortcut_service.go | ||
| sse_event_helpers.go | ||
| sse_handler.go | 2 months ago | |
| sse_hub.go | ||
| sse_hub_test.go | ||
| sse_service_test.go | 2 months ago | |
| sso_username.go | 3 months ago | |
| user_resource_name.go | 3 months ago | |
| user_resource_name_test.go | 3 months ago | |
| user_service.go | 2 weeks ago | |
| user_service_stats.go | 2 months ago | |
| user_webhook_test.go | 2 weeks ago | |
| v1.go | 7 days ago | |