Тайлбар байхгүй

Thomas Dy f05def95b3 Add version that uses API tokens 3 жил өмнө
lib 5aebcd5b54 Make MX and SRV records editable 7 жил өмнө
.gitignore 493685e510 Initial commit 9 жил өмнө
README.md f05def95b3 Add version that uses API tokens 3 жил өмнө
config.json.example f05def95b3 Add version that uses API tokens 3 жил өмнө
index.html 493685e510 Initial commit 9 жил өмнө
main.css 5aebcd5b54 Make MX and SRV records editable 7 жил өмнө
package-lock.json f05def95b3 Add version that uses API tokens 3 жил өмнө
package.json f05def95b3 Add version that uses API tokens 3 жил өмнө
server.js f05def95b3 Add version that uses API tokens 3 жил өмнө
webpack.config.js 84a1b0cff5 Add woff2 in loader config 8 жил өмнө

README.md

Cloudflare WebUI

This is a web frontend to the Cloudflare API. It mainly lets you manage DNS records, but it also lets you toggle development mode and purge the cache as well as changing the SSL mode.

It's a simple frontend for the DNS settings and a simple webserver that handles making the actual requests to Cloudflare.

Usage

Clone the repository, and copy config.json.example to config.json. Make an API token with:

  • Zone - DNS - Edit
  • Zone - Zone Settings - Edit
  • Zone - Cache Purge - Purge

and update config.json with it. Then run npm install then npm start. You should be able to manage your domains at localhost:8000.

Security

The server only listens at 127.0.0.1. It does not provide any form of authentication. It is meant to be run behind a reverse proxy such as nginx with basic auth, or behind something like oauth2_proxy.

The server never exposes your API token to the clients, all requests to Cloudflare are made from the server.