Skip to content

7a6163/docker-cors-anywhere

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7a6163/cors-anywhere

Docker Image Size (tag)

The docker image for cors-anywhere.

Run

docker run --rm 7a6163/cors-anywhere

Envirionment Variables

Env Default Description
PORT 8080 Server listening port
KEY Content or filename of TLS Key
CERT Content or filename of TLS Certificate
CORSANYWHERE_BLACKLIST If set, requests whose origin is listed are blocked.
Comma separated. Example: https://abuse.example.com,http://abuse.example.com
CORSANYWHERE_WHITELIST If set, requests whose origin is not listed are blocked.
If this list is empty, all origins are allowed.
Comma separated. Example: https://good.example.com,http://good.example.com
CORSANYWHERE_RATELIMIT Format: <max requests per period> <period in minutes> <non-ratelimited hosts>
For example, to blacklist abuse.example.com and rate-limit everything to 50 requests per 3 minutes, except for my.example.com and my2.example.com (which may be unlimited), use:
50 3 my.example.com my2.example.com

docker compose version

version: '3'

services:
  app:
    image: 7a6163/cors-anywhere
    container_name: cors-anywhere
    environment:
      - CORSANYWHERE_WHITELIST=http://test.domain
    restart: unless-stopped

LICENSE

This repository is licensed under MIT.

cors-anywhere is Copyright (C) 2013 - 2021 Rob Wu [email protected]

DONATE

If you want to support the project, you can buy the developer a coffee.

"Buy Me A Coffee"

About

The docker image for [cors-anywhere](https://github.com/Rob--W/cors-anywhere)

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 87.9%
  • Dockerfile 12.1%