GithubHelp home page GithubHelp logo

mikrotik-yt-portal's Introduction

Mikrotik External Captive Portal

The following actions are required to use the code given in this repo:

Portal Setup Using Git

Suppose your domain is hotspot.example.com. It can be setup like this:

cd /var/www
git clone https://github.com/nasirhafeez/mikrotik-yt-portal
mv mikrotik-yt-portal hotspot.example.com
cd /var/www/hotspot.example.com

Copy the .env.example file to .env and set the values of the given environment variables in it:

cp .env.example .env
nano .env

Navigate to public folder:

cd /var/www/hotspot.example.com/public

Use this link to install Composer. Then run php composer.phar install to install the packages given in composer.json.

Apache Virtual Hosts

Apache virtual host can be setup on the portal server using the instructions given here.

The portal files are in public folder in this repository. DocumentRoot will be:

/var/www/hotspot.example.com/public

It has been successfully tested with RouterOS v7.4.1

Mikrotik Hotspot Login file

Add your domain to login.html in action field and upload it to Mikrotik router in Files => Hotspot folder.

mikrotik-yt-portal's People

Contributors

nasirhafeez 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.