Neonatal Penguin March

    @zeroindexed/toph-pulumi
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    @zeroindexed/toph-pulumi

    A Pulumi package for deploying @zeroindexed/toph-worker as a Cloudflare worker under your account.

    Usage

    Configure Pulumi to work with the Cloudflare provider.

    This example configures Toph to run under https://toph.zeroindexed.com, adjust accordingly (see the actual code).

    // Use `npm install` or `yarn add` to import the package
    import {Toph} from "@zeroindexed/toph-pulumi";
    
    new Toph("toph", {
        // The Apex domain to deploy under
        cloudflareZone: "zeroindexed.com",
    
        // The Cloudflare Zone ID for the domain, visible on the dashboard
        cloudflareZoneId: "eb5986a524b6f74d162110cd89f815e1",
    
        // The subdomain to deploy under
        subdomain: "toph",
    
        // The Google Universal Analytics tracking ID to use
        trackingId: "UA-197056272-1",
    
        // These timeouts tune how long a visitor session lasts of my blog. Adjust
        // to your usecase and see the `toph-worker` documentation.
        defaultSessionExpirationSeconds: 60 * 60 * 2, // 2 hours
        defaultSessionExtensionSeconds: 60 * 20, // 20 minutes
    
        // Makes visiting https://toph.zeroindexed.com redirect to
        // https://zeroindexed.com/privacy. This parameter is optional.
        rootRedirect: "https://zeroindexed.com/privacy",
    });

    Keywords

    none

    Install

    npm i @zeroindexed/toph-pulumi

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    181 kB

    Total Files

    10

    Last publish

    Collaborators

    • ronuk_raval