Git Product home page Git Product logo

homepage's Introduction

Homepage

It is a small homepage project that allows custom tool lists and restricts IP access.

homepage

Install

git clone https://github.com/tkgfan/homepage.git

go mod tidy

go run main.go

Deployment

Use docker-compose for quick deployment.

version: '3.8'
services:
  app:
    image: 'gmfan/homepage:v0.0.1-release'
    container_name: homepage
    restart: always
    environment:
      - ACCESS_LIST=["0.0.0.0/0"]
      - UPDATE_PATH=upload
    ports:
      - '38001:8888'

Parameter explanations:

  • ACCESS_LIST: List of allowed IP addresses to access.
  • UPDATE_PATH: Custom path for updating configurations.

To update the configuration information at the UPDATE_PATH using a POST request and achieve a custom list, the configuration parameters should follow the following format:

POST /UPDATE_PATH

{
    "header":{
        "icon":"https://api.iconify.design/bxl:dev-to.svg",
        "title":"Homepage",
        "subTitle":"开发者中心"
    },
    "links":[
        {
            "icon":"https://api.iconify.design/mdi:google.svg",
            "title":"Google",
            "url":"https://www.google.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.