diff --git a/Dockerfile b/Dockerfile index cd801929..4a3df3e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY package.json ./ -RUN npm install +RUN npm install --legacy-peer-deps COPY . . @@ -18,12 +18,12 @@ WORKDIR /app COPY package.json ./ -RUN npm install --omit=dev +RUN npm install --omit=dev --legacy-peer-deps COPY --from=builder /app/.next ./.next COPY --from=builder /app/dist ./dist -COPY ./config/config.example.yml ./dist/config.example.yml -COPY ./server/db/names.json ./dist/names.json +COPY config.example.yml ./dist/config.example.yml +COPY server/db/names.json ./dist/names.json CMD ["npm", "start"] diff --git a/config/config.example.yml b/config.example.yml similarity index 100% rename from config/config.example.yml rename to config.example.yml diff --git a/scripts/hydrate.ts b/scripts/hydrate.ts index 608c70a8..d1bdc8dd 100644 --- a/scripts/hydrate.ts +++ b/scripts/hydrate.ts @@ -1,13 +1,13 @@ -import { - orgs, - sites, - resources, - exitNodes, - routes, - targets, -} from "@server/db/schema"; -import db from "@server/db"; -import { createSuperuserRole } from "@server/db/ensureActions"; +// import { +// orgs, +// sites, +// resources, +// exitNodes, +// routes, +// targets, +// } from "@server/db/schema"; +// import db from "@server/db"; +// import { createSuperuserRole } from "@server/db/ensureActions"; async function insertDummyData() { // // Insert dummy orgs diff --git a/server/config.ts b/server/config.ts index ce6e76ff..66cb80ce 100644 --- a/server/config.ts +++ b/server/config.ts @@ -14,7 +14,6 @@ const portSchema = z.number().positive().gt(0).lte(65535); const environmentSchema = z.object({ app: z.object({ - name: z.string(), base_url: z.string().url(), log_level: z.enum(["debug", "info", "warn", "error"]), save_logs: z.boolean(), @@ -129,8 +128,7 @@ process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL = new URL( "/api/v1", `http://${parsedConfig.data.server.internal_hostname}:${parsedConfig.data.server.external_port}` ).href; -process.env.NEXT_PUBLIC_APP_NAME = parsedConfig.data.app.name; -process.env.NEXT_PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED = parsedConfig.data +process.env.PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED = parsedConfig.data .flags?.require_email_verification ? "true" : "false"; diff --git a/server/names.json b/server/names.json new file mode 100644 index 00000000..fdf545fb --- /dev/null +++ b/server/names.json @@ -0,0 +1,1711 @@ +{ + "descriptors": [ + "abandoned", + "able", + "absolute", + "adorable", + "adventurous", + "academic", + "acceptable", + "acclaimed", + "accomplished", + "accurate", + "aching", + "acidic", + "acrobatic", + "active", + "actual", + "adept", + "admirable", + "admired", + "adolescent", + "adorable", + "adored", + "advanced", + "afraid", + "affectionate", + "aged", + "aggravating", + "aggressive", + "agile", + "agitated", + "agonizing", + "agreeable", + "ajar", + "alarmed", + "alarming", + "alert", + "alienated", + "alive", + "all", + "altruistic", + "amazing", + "ambitious", + "ample", + "amused", + "amusing", + "anchored", + "ancient", + "angelic", + "angry", + "anguished", + "animated", + "annual", + "another", + "antique", + "anxious", + "any", + "apprehensive", + "appropriate", + "apt", + "arctic", + "arid", + "aromatic", + "artistic", + "ashamed", + "assured", + "astonishing", + "athletic", + "attached", + "attentive", + "attractive", + "austere", + "authentic", + "authorized", + "automatic", + "avaricious", + "average", + "aware", + "awesome", + "awful", + "awkward", + "babyish", + "bad", + "back", + "baggy", + "bare", + "barren", + "basic", + "beautiful", + "belated", + "beloved", + "beneficial", + "better", + "best", + "bewitched", + "big", + "big-hearted", + "biodegradable", + "bite-sized", + "bitter", + "black", + "black-and-white", + "bland", + "blank", + "blaring", + "bleak", + "blind", + "blissful", + "blond", + "blue", + "blushing", + "bogus", + "boiling", + "bold", + "bony", + "boring", + "bossy", + "both", + "bouncy", + "bountiful", + "bowed", + "brave", + "breakable", + "brief", + "bright", + "brilliant", + "brisk", + "broken", + "bronze", + "brown", + "bruised", + "bubbly", + "bulky", + "bumpy", + "buoyant", + "burdensome", + "burly", + "bustling", + "busy", + "buttery", + "buzzing", + "calculating", + "calm", + "candid", + "canine", + "capital", + "carefree", + "careful", + "careless", + "caring", + "cautious", + "cavernous", + "celebrated", + "charming", + "cheap", + "cheerful", + "cheery", + "chief", + "chilly", + "chubby", + "circular", + "classic", + "clean", + "clear", + "clear-cut", + "clever", + "close", + "closed", + "cloudy", + "clueless", + "clumsy", + "cluttered", + "coarse", + "cold", + "colorful", + "colorless", + "colossal", + "comfortable", + "common", + "compassionate", + "competent", + "complete", + "complex", + "complicated", + "composed", + "concerned", + "concrete", + "confused", + "conscious", + "considerate", + "constant", + "content", + "conventional", + "cooked", + "cool", + "cooperative", + "coordinated", + "corny", + "corrupt", + "costly", + "courageous", + "courteous", + "crafty", + "crazy", + "creamy", + "creative", + "creepy", + "criminal", + "crisp", + "critical", + "crooked", + "crowded", + "cruel", + "crushing", + "cuddly", + "cultivated", + "cultured", + "cumbersome", + "curly", + "curvy", + "cute", + "cylindrical", + "damaged", + "damp", + "dangerous", + "dapper", + "daring", + "darling", + "dark", + "dazzling", + "dead", + "deadly", + "deafening", + "dear", + "dearest", + "decent", + "decimal", + "decisive", + "deep", + "defenseless", + "defensive", + "defiant", + "deficient", + "definite", + "definitive", + "delayed", + "delectable", + "delicious", + "delightful", + "delirious", + "demanding", + "dense", + "dental", + "dependable", + "dependent", + "descriptive", + "deserted", + "detailed", + "determined", + "devoted", + "different", + "difficult", + "digital", + "diligent", + "dim", + "dimpled", + "dimwitted", + "direct", + "disastrous", + "discrete", + "disfigured", + "disgusting", + "disloyal", + "dismal", + "distant", + "downright", + "dreary", + "dirty", + "disguised", + "dishonest", + "dismal", + "distant", + "distinct", + "distorted", + "dizzy", + "dopey", + "doting", + "double", + "downright", + "drab", + "drafty", + "dramatic", + "dreary", + "droopy", + "dry", + "dual", + "dull", + "dutiful", + "each", + "eager", + "earnest", + "early", + "easy", + "easy-going", + "ecstatic", + "edible", + "educated", + "elaborate", + "elastic", + "elated", + "elderly", + "electric", + "elegant", + "elementary", + "elliptical", + "embarrassed", + "embellished", + "eminent", + "emotional", + "empty", + "enchanted", + "enchanting", + "energetic", + "enlightened", + "enormous", + "enraged", + "entire", + "envious", + "equal", + "equatorial", + "essential", + "esteemed", + "ethical", + "euphoric", + "even", + "evergreen", + "everlasting", + "every", + "evil", + "exalted", + "excellent", + "exemplary", + "exhausted", + "excitable", + "excited", + "exciting", + "exotic", + "expensive", + "experienced", + "expert", + "extraneous", + "extroverted", + "extra-large", + "extra-small", + "fabulous", + "failing", + "faint", + "fair", + "faithful", + "fake", + "false", + "familiar", + "famous", + "fancy", + "fantastic", + "far", + "faraway", + "far-flung", + "far-off", + "fast", + "fat", + "fatal", + "fatherly", + "favorable", + "favorite", + "fearful", + "fearless", + "feisty", + "feline", + "female", + "feminine", + "few", + "fickle", + "filthy", + "fine", + "finished", + "firm", + "first", + "firsthand", + "fitting", + "fixed", + "flaky", + "flamboyant", + "flashy", + "flat", + "flawed", + "flawless", + "flickering", + "flimsy", + "flippant", + "flowery", + "fluffy", + "fluid", + "flustered", + "focused", + "fond", + "foolhardy", + "foolish", + "forceful", + "forked", + "formal", + "forsaken", + "forthright", + "fortunate", + "fragrant", + "frail", + "frank", + "frayed", + "free", + "French", + "fresh", + "frequent", + "friendly", + "frightened", + "frightening", + "frigid", + "frilly", + "frizzy", + "frivolous", + "front", + "frosty", + "frozen", + "frugal", + "fruitful", + "full", + "fumbling", + "functional", + "funny", + "fussy", + "fuzzy", + "gargantuan", + "gaseous", + "general", + "generous", + "gentle", + "genuine", + "giant", + "giddy", + "gigantic", + "gifted", + "giving", + "glamorous", + "glaring", + "glass", + "gleaming", + "gleeful", + "glistening", + "glittering", + "gloomy", + "glorious", + "glossy", + "glum", + "golden", + "good", + "good-natured", + "gorgeous", + "graceful", + "gracious", + "grand", + "grandiose", + "granular", + "grateful", + "grave", + "gray", + "great", + "greedy", + "green", + "gregarious", + "grim", + "grimy", + "gripping", + "grizzled", + "gross", + "grotesque", + "grouchy", + "grounded", + "growing", + "growling", + "grown", + "grubby", + "gruesome", + "grumpy", + "guilty", + "gullible", + "gummy", + "hairy", + "half", + "handmade", + "handsome", + "handy", + "happy", + "happy-go-lucky", + "hard", + "hard-to-find", + "harmful", + "harmless", + "harmonious", + "harsh", + "hasty", + "hateful", + "haunting", + "healthy", + "heartfelt", + "hearty", + "heavenly", + "heavy", + "hefty", + "helpful", + "helpless", + "hidden", + "hideous", + "high", + "high-level", + "hilarious", + "hoarse", + "hollow", + "homely", + "honest", + "honorable", + "honored", + "hopeful", + "horrible", + "hospitable", + "hot", + "huge", + "humble", + "humiliating", + "humming", + "humongous", + "hungry", + "hurtful", + "husky", + "icky", + "icy", + "ideal", + "idealistic", + "identical", + "idle", + "idiotic", + "idolized", + "ignorant", + "ill", + "illegal", + "ill-fated", + "ill-informed", + "illiterate", + "illustrious", + "imaginary", + "imaginative", + "immaculate", + "immaterial", + "immediate", + "immense", + "impassioned", + "impeccable", + "impartial", + "imperfect", + "imperturbable", + "impish", + "impolite", + "important", + "impossible", + "impractical", + "impressionable", + "impressive", + "improbable", + "impure", + "inborn", + "incomparable", + "incompatible", + "incomplete", + "inconsequential", + "incredible", + "indelible", + "inexperienced", + "indolent", + "infamous", + "infantile", + "infatuated", + "inferior", + "infinite", + "informal", + "innocent", + "insecure", + "insidious", + "insignificant", + "insistent", + "instructive", + "insubstantial", + "intelligent", + "intent", + "intentional", + "interesting", + "internal", + "international", + "intrepid", + "ironclad", + "irresponsible", + "irritating", + "itchy", + "jaded", + "jagged", + "jam-packed", + "jaunty", + "jealous", + "jittery", + "joint", + "jolly", + "jovial", + "joyful", + "joyous", + "jubilant", + "judicious", + "juicy", + "jumbo", + "junior", + "jumpy", + "juvenile", + "kaleidoscopic", + "keen", + "key", + "kind", + "kindhearted", + "kindly", + "klutzy", + "knobby", + "knotty", + "knowledgeable", + "knowing", + "known", + "kooky", + "kosher", + "lame", + "lanky", + "large", + "last", + "lasting", + "late", + "lavish", + "lawful", + "lazy", + "leading", + "lean", + "leafy", + "left", + "legal", + "legitimate", + "light", + "lighthearted", + "likable", + "likely", + "limited", + "limp", + "limping", + "linear", + "lined", + "liquid", + "little", + "live", + "lively", + "livid", + "loathsome", + "lone", + "lonely", + "long", + "long-term", + "loose", + "lopsided", + "lost", + "loud", + "lovable", + "lovely", + "loving", + "low", + "loyal", + "lucky", + "lumbering", + "luminous", + "lumpy", + "lustrous", + "luxurious", + "mad", + "made-up", + "magnificent", + "majestic", + "major", + "male", + "mammoth", + "married", + "marvelous", + "masculine", + "massive", + "mature", + "meager", + "mealy", + "mean", + "measly", + "meaty", + "medical", + "mediocre", + "medium", + "meek", + "mellow", + "melodic", + "memorable", + "menacing", + "merry", + "messy", + "metallic", + "mild", + "milky", + "mindless", + "miniature", + "minor", + "minty", + "miserable", + "miserly", + "misguided", + "misty", + "mixed", + "modern", + "modest", + "moist", + "monstrous", + "monthly", + "monumental", + "moral", + "mortified", + "motherly", + "motionless", + "mountainous", + "muddy", + "muffled", + "multicolored", + "mundane", + "murky", + "mushy", + "musty", + "muted", + "mysterious", + "naive", + "narrow", + "nasty", + "natural", + "naughty", + "nautical", + "near", + "neat", + "necessary", + "needy", + "negative", + "neglected", + "negligible", + "neighboring", + "nervous", + "new", + "next", + "nice", + "nifty", + "nimble", + "nippy", + "nocturnal", + "noisy", + "nonstop", + "normal", + "notable", + "noted", + "noteworthy", + "novel", + "noxious", + "numb", + "nutritious", + "nutty", + "obedient", + "obese", + "oblong", + "oily", + "oblong", + "obvious", + "occasional", + "odd", + "oddball", + "offbeat", + "offensive", + "official", + "old", + "old-fashioned", + "only", + "open", + "optimal", + "optimistic", + "opulent", + "orange", + "orderly", + "organic", + "ornate", + "ornery", + "ordinary", + "original", + "other", + "our", + "outlying", + "outgoing", + "outlandish", + "outrageous", + "outstanding", + "oval", + "overcooked", + "overdue", + "overjoyed", + "overlooked", + "palatable", + "pale", + "paltry", + "parallel", + "parched", + "partial", + "passionate", + "past", + "pastel", + "peaceful", + "peppery", + "perfect", + "perfumed", + "periodic", + "perky", + "personal", + "pertinent", + "pesky", + "pessimistic", + "petty", + "phony", + "physical", + "piercing", + "pink", + "pitiful", + "plain", + "plaintive", + "plastic", + "playful", + "pleasant", + "pleased", + "pleasing", + "plump", + "plush", + "polished", + "polite", + "political", + "pointed", + "pointless", + "poised", + "poor", + "popular", + "portly", + "posh", + "positive", + "possible", + "potable", + "powerful", + "powerless", + "practical", + "precious", + "present", + "prestigious", + "pretty", + "precious", + "previous", + "pricey", + "prickly", + "primary", + "prime", + "pristine", + "private", + "prize", + "probable", + "productive", + "profitable", + "profuse", + "proper", + "proud", + "prudent", + "punctual", + "pungent", + "puny", + "pure", + "purple", + "pushy", + "putrid", + "puzzled", + "puzzling", + "quaint", + "qualified", + "quarrelsome", + "quarterly", + "queasy", + "querulous", + "questionable", + "quick", + "quick-witted", + "quiet", + "quintessential", + "quirky", + "quixotic", + "quizzical", + "radiant", + "ragged", + "rapid", + "rare", + "rash", + "raw", + "recent", + "reckless", + "rectangular", + "ready", + "real", + "realistic", + "reasonable", + "red", + "reflecting", + "regal", + "regular", + "reliable", + "relieved", + "remarkable", + "remorseful", + "remote", + "repentant", + "required", + "respectful", + "responsible", + "repulsive", + "revolving", + "rewarding", + "rich", + "rigid", + "right", + "ringed", + "ripe", + "roasted", + "robust", + "rosy", + "rotating", + "rotten", + "rough", + "round", + "rowdy", + "royal", + "rubbery", + "rundown", + "ruddy", + "rude", + "runny", + "rural", + "rusty", + "sad", + "safe", + "salty", + "same", + "sandy", + "sane", + "sarcastic", + "sardonic", + "satisfied", + "scaly", + "scarce", + "scared", + "scary", + "scented", + "scholarly", + "scientific", + "scornful", + "scratchy", + "scrawny", + "second", + "secondary", + "second-hand", + "secret", + "self-assured", + "self-reliant", + "selfish", + "sentimental", + "separate", + "serene", + "serious", + "serpentine", + "several", + "severe", + "shabby", + "shadowy", + "shady", + "shallow", + "shameful", + "shameless", + "sharp", + "shimmering", + "shiny", + "shocked", + "shocking", + "shoddy", + "short", + "short-term", + "showy", + "shrill", + "shy", + "sick", + "silent", + "silky", + "silly", + "silver", + "similar", + "simple", + "simplistic", + "sinful", + "single", + "sizzling", + "skeletal", + "skinny", + "sleepy", + "slight", + "slim", + "slimy", + "slippery", + "slow", + "slushy", + "small", + "smart", + "smoggy", + "smooth", + "smug", + "snappy", + "snarling", + "sneaky", + "sniveling", + "snoopy", + "sociable", + "soft", + "soggy", + "solid", + "somber", + "some", + "spherical", + "sophisticated", + "sore", + "sorrowful", + "soulful", + "soupy", + "sour", + "Spanish", + "sparkling", + "sparse", + "specific", + "spectacular", + "speedy", + "spicy", + "spiffy", + "spirited", + "spiteful", + "splendid", + "spotless", + "spotted", + "spry", + "square", + "squeaky", + "squiggly", + "stable", + "staid", + "stained", + "stale", + "standard", + "starchy", + "stark", + "starry", + "steep", + "sticky", + "stiff", + "stimulating", + "stingy", + "stormy", + "straight", + "strange", + "steel", + "strict", + "strident", + "striking", + "striped", + "strong", + "studious", + "stunning", + "stupendous", + "stupid", + "sturdy", + "stylish", + "subdued", + "submissive", + "substantial", + "subtle", + "suburban", + "sudden", + "sugary", + "sunny", + "super", + "superb", + "superficial", + "superior", + "supportive", + "sure-footed", + "surprised", + "suspicious", + "svelte", + "sweaty", + "sweet", + "sweltering", + "swift", + "sympathetic", + "tall", + "talkative", + "tame", + "tan", + "tangible", + "tart", + "tasty", + "tattered", + "taut", + "tedious", + "teeming", + "tempting", + "tender", + "tense", + "tepid", + "terrible", + "terrific", + "testy", + "thankful", + "that", + "these", + "thick", + "thin", + "third", + "thirsty", + "this", + "thorough", + "thorny", + "those", + "thoughtful", + "threadbare", + "thrifty", + "thunderous", + "tidy", + "tight", + "timely", + "tinted", + "tiny", + "tired", + "torn", + "total", + "tough", + "traumatic", + "treasured", + "tremendous", + "tragic", + "trained", + "tremendous", + "triangular", + "tricky", + "trifling", + "trim", + "trivial", + "troubled", + "true", + "trusting", + "trustworthy", + "trusty", + "truthful", + "tubby", + "turbulent", + "twin", + "ugly", + "ultimate", + "unacceptable", + "unaware", + "uncomfortable", + "uncommon", + "unconscious", + "understated", + "unequaled", + "uneven", + "unfinished", + "unfit", + "unfolded", + "unfortunate", + "unhappy", + "unhealthy", + "uniform", + "unimportant", + "unique", + "united", + "unkempt", + "unknown", + "unlawful", + "unlined", + "unlucky", + "unnatural", + "unpleasant", + "unrealistic", + "unripe", + "unruly", + "unselfish", + "unsightly", + "unsteady", + "unsung", + "untidy", + "untimely", + "untried", + "untrue", + "unused", + "unusual", + "unwelcome", + "unwieldy", + "unwilling", + "unwitting", + "unwritten", + "upbeat", + "upright", + "upset", + "urban", + "usable", + "used", + "useful", + "useless", + "utilized", + "utter", + "vacant", + "vague", + "vain", + "valid", + "valuable", + "vapid", + "variable", + "vast", + "velvety", + "venerated", + "vengeful", + "verifiable", + "vibrant", + "vicious", + "victorious", + "vigilant", + "vigorous", + "villainous", + "violet", + "violent", + "virtual", + "virtuous", + "visible", + "vital", + "vivacious", + "vivid", + "voluminous", + "wan", + "warlike", + "warm", + "warmhearted", + "warped", + "wary", + "wasteful", + "watchful", + "waterlogged", + "watery", + "wavy", + "wealthy", + "weak", + "weary", + "webbed", + "wee", + "weekly", + "weepy", + "weighty", + "weird", + "welcome", + "well-documented", + "well-groomed", + "well-informed", + "well-lit", + "well-made", + "well-off", + "well-to-do", + "well-worn", + "wet", + "which", + "whimsical", + "whirlwind", + "whispered", + "white", + "whole", + "whopping", + "wicked", + "wide", + "wide-eyed", + "wiggly", + "wild", + "willing", + "wilted", + "winding", + "windy", + "winged", + "wiry", + "wise", + "witty", + "wobbly", + "woeful", + "wonderful", + "wooden", + "woozy", + "wordy", + "worldly", + "worn", + "worried", + "worrisome", + "worse", + "worst", + "worthless", + "worthwhile", + "worthy", + "wrathful", + "wretched", + "writhing", + "wrong", + "wry", + "yawning", + "yearly", + "yellow", + "yellowish", + "young", + "youthful", + "yummy", + "zany", + "zealous", + "zesty", + "zigzag" + ], + "animals": [ + "Cape Fox", + "Short-Beaked Echidna", + "Platypus", + "Arctic Ground Squirrel", + "Black-Tailed Prairie Dog", + "Franklin's Ground Squirrel", + "Golden-Mantled Ground Squirrel", + "Groundhog", + "Yellow-Bellied Marmot", + "Eastern Mole", + "Pink Fairy Armadillo", + "Star-Nosed Mole", + "Smooth-Coated Otter", + "Degu", + "Meadow Vole", + "Campbell's Dwarf Hamster", + "Fat Sand Rat", + "Striped Ground Squirrel", + "Syrian Hamster", + "Common Wombat", + "Greater Bilby", + "Marsupial Mole", + "Numbat", + "Southern Hairy-Nosed Wombat", + "American Badger", + "Little Blue Penguin", + "Giant Armadillo", + "Eastern Long-Beaked Echidna", + "Screaming Hairy Armadillo", + "Chinese Hamster", + "Roborovski Hamster", + "Djungarian Hamster", + "Indian Desert Jird", + "Great Gerbil", + "Plains Rat", + "Big-Headed Mole-Rat", + "Cape Ground Squirrel", + "Colorado Chipmunk", + "Alpine Chipmunk", + "Cliff Chipmunk", + "Hoary Marmot", + "Himalayan Marmot", + "Olympic Marmot", + "San Joaquin Antelope Squirrel", + "Gunnison's Prairie Dog", + "California Ground Squirrel", + "White-Tailed Prairie Dog", + "Spotted Ground Squirrel", + "Uinta Ground Squirrel", + "Columbian Ground Squirrel", + "Richardson's Ground Squirrel", + "European Ground Squirrel", + "Speckled Ground Squirrel", + "Broad-Footed Mole", + "European Mole", + "Sunda Pangolin", + "Desert Rosy Boa", + "Desert Tortoise", + "Brahminy Blind Snake", + "Eastern Hognose Snake", + "Saharan Horned Viper", + "Gopher Snake", + "Scarlet Kingsnake", + "Eastern Pine Snake", + "Eastern Coral Snake", + "Naked Mole-Rat", + "Mud Snake", + "Barbados Threadsnake", + "Arabian Sand Boa", + "Japanese Badger", + "Rainbow Snake", + "Red-Eyed Crocodile Skink", + "Texas Coral Snake", + "Glossy Snake", + "Oriental Wolf Snake", + "Hog Badger", + "Mongolian Gerbil", + "Damaraland Mole-Rat", + "Steppe Polecat", + "Woma Python", + "Southern Hognose Snake", + "Asian Badger", + "Giant Girdled Lizard", + "Common Vole", + "Bank Vole", + "Chinese Ferret-Badger", + "Desert Grassland Whiptail Lizard", + "Rough Earth Snake", + "Thirteen-Lined Ground Squirrel", + "Southern Three-Banded Armadillo", + "Slowworm", + "Siberian Chipmunk", + "Round-Tailed Ground Squirrel", + "Pygmy Rabbit", + "Pied Kingfisher", + "Northern Short-Tailed Shrew ", + "Northern Pika", + "Nine-Banded Armadillo", + "Nile Monitor", + "Lowland Streaked Tenrec", + "Lowland Paca", + "Long-Nosed Bandicoot", + "Long-Eared Jerboa", + "Idaho Ground Squirrel", + "Ground Pangolin", + "Great Plains Rat Snake", + "Gopher Tortoise", + "Giant Pangolin", + "European Hedgehog", + "European Hamster", + "Common Box Turtle", + "Brown Rat", + "Bog Turtle", + "Bengal Fox", + "American Alligator", + "Aardvark", + "Olm", + "Tiger salamander", + "Chinese giant salamander", + "Spotted salamander", + "Blue-spotted salamander", + "Eastern worm snake", + "Deinagkistrodon", + "Northern crested newt", + "Barred tiger salamander", + "Rainbow bee-eater", + "Sunbeam Snake", + "Sandfish Skink", + "Mexican Mole Lizard", + "Tarbagan marmot", + "Black-Headed Python", + "Vancouver Island Marmot", + "Bothrochilus", + "Western Box Turtle", + "Long-toed salamander", + "Fat-Tailed Gerbil", + "Mexican Prairie Dog", + "Marbled salamander", + "Bandy-Bandy", + "Smooth Earth Snake", + "Boodie", + "Zebra-Tailed Lizard", + "White-headed langur", + "Javan Ferret-Badger", + "Southwestern Blackhead Snake", + "Malagasy Giant Rat", + "Big Hairy Armadillo", + "Camas pocket gopher", + "Woodland vole", + "Lesser Egyptian jerboa", + "Little Brown Skink", + "Plains pocket gopher", + "Alaska marmot", + "Gray marmot", + "Louisiana waterthrush", + "Ord's kangaroo rat", + "North American least shrew", + "Western rosella", + "Northwestern salamander", + "Acrochordus granulatus", + "Kowari", + "Anilius", + "Gastrophryne carolinensis", + "Yellow mud turtle", + "Plateau pika", + "Steppe lemming", + "American shrew mole", + "Calabar python", + "Dermophis mexicanus", + "Rufous rat-kangaroo", + "Hairy-tailed mole", + "Mexican burrowing toad", + "Seven-banded armadillo", + "Scaphiopus holbrookii", + "Asiatic brush-tailed porcupine", + "Bolson tortoise", + "Common midwife toad", + "Ambystoma talpoideum", + "Crucifix toad", + "Red Hills salamander", + "Uperodon taprobanicus", + "Plains spadefoot toad", + "Spea hammondii", + "Puerto Rican crested toad", + "Physalaemus nattereri", + "Yosemite toad", + "Frosted flatwoods salamander", + "Striped newt", + "Streamside salamander", + "Southern red-backed salamander", + "Spencer's burrowing frog", + "Ringed salamander", + "Kaloula baleata", + "Uperodon systoma", + "Ichthyophis beddomei", + "Uperodon globulosus", + "Herpele squalostoma", + "Ichthyophis mindanaoensis", + "Sandhill frog", + "Strecker's chorus frog", + "Uraeotyphlus oxyurus", + "Caecilia nigricans", + "Uraeotyphlus menoni", + "Savannah forest tree frog", + "Uraeotyphlus interruptus", + "Rose's rain frog", + "Dermophis parviceps", + "Leptopelis gramineus", + "Rhombophryne coudreaui", + "Elachistocleis pearsei", + "Hylodes heyeri", + "Carphophis vermis", + "Anniella pulchra", + "Lampropeltis calligaster rhombomaculata", + "Xerotyphlops vermicularis", + "Iberian worm lizard", + "Lytorhynchus diadema", + "Micrurus frontalis", + "Euprepiophis conspicillata", + "Amphisbaena fuliginosa", + "Greater earless lizard", + "Afrotyphlops schlegelii", + "Texas lined snake", + "Atractaspis branchi", + "Calamaria gervaisii", + "Brachyurophis fasciolatus", + "Brongersma's worm snake", + "Letheobia simonii", + "Grypotyphlops acutus", + "Acontias breviceps", + "Reticulate worm snake", + "Trinidad worm snake", + "Amphisbaena microcephala", + "Lerista labialis", + "Flathead worm snake", + "Mertens's worm lizard", + "Elegant worm snake", + "Iranian worm snake", + "Pernambuco worm snake", + "Crest-tailed mulgara", + "Southern long-nosed armadillo", + "Greater fairy armadillo", + "Steppe pika", + "Black-capped marmot", + "Armored rat", + "Giant mole-rat", + "Montane vole", + "Oldfield mouse", + "Southeastern pocket gopher", + "Long-tailed vole", + "Greater naked-tailed armadillo", + "Common mole-rat", + "Philippine porcupine", + "Milne-Edwards's sifaka", + "Townsend's mole", + "Giant golden mole", + "Daurian pika", + "Cape golden mole", + "Yellow-faced pocket gopher", + "Indian gerbil", + "Plains viscacha rat", + "Red tree vole", + "Middle East blind mole-rat", + "Mountain paca", + "Pallas's pika", + "Bicolored shrew", + "Cape mole-rat", + "Cascade golden-mantled ground squirrel", + "Unstriped ground squirrel", + "Townsend's vole", + "Yellow ground squirrel", + "Desert pocket gopher", + "Bunny rat", + "Washington ground squirrel", + "Mole-like rice tenrec", + "Greater mole-rat", + "Hottentot golden mole", + "Plains pocket mouse", + "Cheesman's gerbil", + "Judean Mountains blind mole-rat", + "Chisel-toothed kangaroo rat", + "Rough-haired golden mole", + "Southeastern shrew", + "California pocket mouse", + "Coruro", + "Merriam's shrew", + "Long-tailed mole", + "Orange leaf-nosed bat", + "South African pouched mouse", + "Selous's mongoose", + "Ash-grey mouse", + "Russet ground squirrel", + "Gulf Coast kangaroo rat", + "Olive-backed pocket mouse", + "Northeast African mole-rat", + "San Diego pocket mouse", + "Nelson's pocket mouse", + "Geoffroy's horseshoe bat", + "Narrow-faced kangaroo rat", + "Chilean rock rat", + "R\u00fcppell's horseshoe bat", + "Long-tailed pocket mouse", + "Aztec mouse", + "Western mouse", + "Felten's myotis", + "Akodon azarae", + "Talas tuco-tuco", + "Upper Galilee Mountains blind mole-rat", + "Pearson's tuco-tuco", + "Mount Carmel blind mole-rat", + "Plethobasus cyphyus", + "Long-Nosed Snake", + "Russian Desman", + "Texas Blind Snake", + "Florida Box Turtle", + "Lesser Bandicoot Rat", + "Bush Rat", + "Six-Lined Racerunner", + "Eastern Bearded Dragon", + "Lesser Antillean Iguana", + "Eastern Mud Turtle", + "Slender Glass Lizard", + "Scarlet Snake", + "Natal Multimammate Mouse", + "Mountain Beaver", + "Bobak Marmot", + "Kirtland's Snake", + "Pine Woods Snake", + "Western Whiptail", + "Boxelder bug", + "Porcellio scaber", + "German cockroach", + "Forficula auricularia", + "Anisolabis maritima", + "Trigoniulus corallinus", + "Sinea diadema", + "Black imported fire ant", + "Scutigera coleoptrata", + "Mastigoproctus giganteus", + "Dermacentor andersoni", + "Deathstalker", + "Larinioides cornutus", + "Cheiracanthium inclusum", + "Latrodectus hesperus", + "Scytodes thoracica", + "Atypus affinis", + "Illacme plenipes", + "Ommatoiulus moreleti", + "Narceus americanus", + "Madagascar hissing cockroach", + "Labidura riparia", + "Forficula smyrnensis", + "Argentine ant", + "Texas leafcutter ant", + "Brachypelma klaasi", + "Western Blind Snake", + "Desert Box Turtle", + "African Striped Weasel" + ] +} \ No newline at end of file diff --git a/server/routers/auth/requestTotpSecret.ts b/server/routers/auth/requestTotpSecret.ts index 2b2421d9..343393dc 100644 --- a/server/routers/auth/requestTotpSecret.ts +++ b/server/routers/auth/requestTotpSecret.ts @@ -65,7 +65,7 @@ export async function requestTotpSecret( const hex = crypto.getRandomValues(new Uint8Array(20)); const secret = encodeHex(hex); - const uri = createTOTPKeyURI(config.app.name, user.email, hex); + const uri = createTOTPKeyURI("Pangolin", user.email, hex); await db .update(users) diff --git a/src/api/index.ts b/src/api/index.ts index 792778f6..073dc2f5 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,7 +1,12 @@ import axios from "axios"; +// let origin; +// if (typeof window !== "undefined") { +// origin = window.location.origin; +// } + export const api = axios.create({ - baseURL: process.env.NEXT_PUBLIC_EXTERNAL_API_BASE_URL, + baseURL: `http://localhost:3000/api/v1`, timeout: 10000, headers: { "Content-Type": "application/json", @@ -9,7 +14,7 @@ export const api = axios.create({ }); export const internal = axios.create({ - baseURL: process.env.NEXT_PUBLIC_INTERNAL_API_BASE_URL, + baseURL: `http://localhost:3000/api/v1`, timeout: 10000, headers: { "Content-Type": "application/json", diff --git a/src/app/auth/verify-email/page.tsx b/src/app/auth/verify-email/page.tsx index 9f5cfa38..2444ea13 100644 --- a/src/app/auth/verify-email/page.tsx +++ b/src/app/auth/verify-email/page.tsx @@ -5,7 +5,7 @@ import { redirect } from "next/navigation"; export default async function Page(props: { searchParams: Promise<{ [key: string]: string | string[] | undefined }>; }) { - if (process.env.NEXT_PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED !== "true") { + if (process.env.PUBLIC_FLAGS_EMAIL_VERIFICATION_REQUIRED !== "true") { redirect("/"); }