Skip to content

global-httpstat working unkey api v2 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions global-httpstat/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { spawn } from "child_process";
import { promises as fs } from "fs";
import { readFileSync, writeFileSync } from "fs";
import http from "http";
import { ParsedUrlQuery } from "node:querystring";
type ParsedUrlQuery = { [key: string]: string | string[] | undefined };
import os from "os";
import path from "path";
import url from "url";
Expand Down Expand Up @@ -52,9 +52,9 @@ programm.name("globalstat").description("httpstat, but globally").version(versio
programm
.command("check")
.argument("<url>", "the url to check")
.option<number>("-n, --runs <RUNS>", "the number of times to run the check", (s) => parseInt(s), 1)
.option<string>("-m, --method <METHOD>", "the http method to use", "GET")
.option<string[]>("-r, --regions <REGION1>,[REGION2>", "the regions to run the check from, comma separated to check multiple regions", s => s.split(","), ["fra"])
.option("-n, --runs <RUNS>", "the number of times to run the check", (s) => parseInt(s), 1)
.option("-m, --method <METHOD>", "the http method to use", "GET")
.option("-r, --regions <REGION1>,[REGION2>", "the regions to run the check from, comma separated to check multiple regions", (s) => s.split(","), ["fra"])
.description("Check the status of a url")
.action(async (url, options) => {

Expand Down
327 changes: 327 additions & 0 deletions global-httpstat/cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions global-httpstat/web/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_xxxxxxxxxxxxxx
CLERK_SECRET_KEY=sk_test_xxxxxxxxxxxxxx
UNKEY_API_ID=api_xxxxxxxxxxxxxx
UNKEY_ROOT_KEY=unkey_xxxxxxxxxxxxxx

UPSTASH_REDIS_REST_URL="https://<Your URL>"
UPSTASH_REDIS_REST_TOKEN="redisTokenxxxx"
Loading