Skip to content

Reverse proxy for climbing the paywall

Notifications You must be signed in to change notification settings

fionn/paywalled-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paywalled News

The Truth Is Paywalled But The Lies Are Free

Authentication

You need to pass the provider your account_id (workers are account-level resources). Then you can authenticate either with email and api_key, or with api_token.

If you use a token, you need the following scopes:

  • user:
    • Workers Scripts:Edit,
    • Account Settings:Read,
    • apex zone:
      • Zone Settings:Edit,
      • Workers Routes:Edit,
      • Page Rules:Edit,
      • DNS:Edit,
  • All users:
    • User Details:Read.

Configuration

You must specify:

  • apex_zone_name, the hostname of the zone to deploy to,
  • apex_root_redirect_url, the URL to 302 redirect to from /,
  • ft_destination_host, the host you want to proxy traffic to,
  • ft_referrer, the HTTP Referer header (optional).

Deployment

terraform apply