Giter VIP home page Giter VIP logo

dyndns-example's Introduction

What is this?

This is an example application to show how michaelesmith/dyndns-kit can be used.

Install

composer create-project "michaelesmith/dyndns-example" mydyndns

Setup

This example application makes use of the symfony/dotenv library to load parameters but you could use anything. It will try to load a .env file in the project root dir if one exists otherwise it will load the included .env.dist. If you want to override values just copy .env.dist to .env and make any changes / additions. If you want to uncomment the advanced example you will need to insert your Digital Ocean API token in the .env or hard code it.

Running it

This repository also includes a simple docker compose file (generated by the awesome PHPDocker.io) to allow you to play with this project with a minimum of effort. If you want to test it out with docker just docker-copose up -d

If you want use this without docker you will need to configure your webserver to serve the /public/index.php file. For an example you can see the config used by Nginx through docker at phpdocker/nginx/nginx.conf.

Try it out

Example curl command

curl "testuser:s3cret@localhost:9001/nic/update?hostname=test.example.com&myip=127.0.0.1"

Example with multiple hosts

curl "testuser:s3cret@localhost:9001/nic/update?hostname=test1.example.com,test2.example.com&myip=127.0.0.1"

Example without IP (if no IP is given the client IP address will be used)

curl "testuser:s3cret@localhost:9001/nic/update?hostname=test.example.com"

dyndns-example's People

Contributors

michaelesmith avatar

Watchers

 avatar  avatar

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.