chore: add gmail hook setup notes
This commit is contained in:
@@ -114,6 +114,7 @@ export async function runGmailSetup(opts: GmailSetupOptions) {
|
|||||||
opts.project ??
|
opts.project ??
|
||||||
parsedTopic?.projectId ??
|
parsedTopic?.projectId ??
|
||||||
(await resolveProjectIdFromGogCredentials());
|
(await resolveProjectIdFromGogCredentials());
|
||||||
|
// Gmail watch requires the Pub/Sub topic to live in the OAuth client project.
|
||||||
if (!projectId) {
|
if (!projectId) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"GCP project id required (use --project or ensure gog credentials are available)",
|
"GCP project id required (use --project or ensure gog credentials are available)",
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ export async function ensureTailscaleEndpoint(params: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const baseUrl = `https://${dnsName}${pathArg}`;
|
const baseUrl = `https://${dnsName}${pathArg}`;
|
||||||
|
// Funnel/serve strips pathArg before proxying; keep it only in the public URL.
|
||||||
return params.token ? `${baseUrl}?token=${params.token}` : baseUrl;
|
return params.token ? `${baseUrl}?token=${params.token}` : baseUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user