GithubHelp home page GithubHelp logo

sjaks / dynamo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

Flask interface for DNS records management. Deployed using Docker.

License: GNU General Public License v3.0

Python 38.24% HTML 23.37% JavaScript 34.59% Dockerfile 2.25% Shell 1.54%
dns domains flask docker

dynamo's Introduction

Dynamo

Interface for creating DNS records on your own website.
Works with Cloudflare.

Usage

Docker

This project ships with a Dockerfile. You can deploy Dynamo on your server with Docker.

  1. Clone the repo and build the image.
git clone https://github.com/sjaks/dynamo.git
cd dynamo/container
docker build -t dynamo .
  1. Edit the .env file. Edit in your desired Dynamo password and information from CloudFlare.
$ nano .env
CFAPI=
CFZONE=
CFDOMAIN=
CFEMAIL=
DYNOPASS=
  1. Start a container based on your new Dynamo image.
docker run --name dynamo --env-file .env -p 8003:8003 --rm dynamo
  1. Open the Dynamo dashboard.
http://localhost:8003

Env variables

Dynamo uses the following environmental variables.

  • CFAPI - Cloudflare API key
  • CFZONE - DNS zone ID
  • CFDOMAIN - Your domain on CloudFlare
  • CFEMAIL - Cloudflare account email
  • DYNOPASS - Custom dynamo password

HTTPS and ports 80/443

Dynamo runs by default on port 8003. The Docker configuration reveals that port and you can access the dashboard at http://localhost:8003. The Docker image can be used for production but usually you may want to enable HTTPS and serve the dashboard on port 80 (or 443 for TLS).

You will need to setup a proxy with either Nginx or Apache 2 to point traffic from ports 80 and 443 to Dynamo's port 8003. By doing this, you can also issue a SSL/TLS certificate on your site and enable HTTPS.

Example Nginx configuration

server {
    listen 80;
    ...
    location / {
        proxy_pass http://127.0.0.1:8003;
    }
    ...
}

Links

Read about CloudFlare API: https://api.cloudflare.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.