Coder Social home page Coder Social logo

themeinerlp / skinserver Goto Github PK

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

A simple skin server written in spring boot and kotlin

Home Page: https://themeinerlp.github.io/SkinServer/

License: MIT License

Kotlin 100.00%
minecraft standalone-server server skin mojang-api mongodb spring-boot hacktoberfest hacktoberfest-accepted hacktoberfest2022

skinserver's Introduction

Skin Server

GitHub issues GitHub forks GitHub stars GitHub license

This is a simple skin server to downloading, pre-caching and rendering

Features:

  • Render a skin head based on a file
  • Render a skin/head based on uuid or username
  • Save skins into database for long-time cache
  • Token based IP Selection for mojang requests
  • Dockerized
  • Kubernetes ready

Installation with Docker

Run this command to start a single instance with mongodb properties.

docker run --name skinserver \
  -d \
  -e SPRING_DATA_MONGODB_AUTHENTICATION-DATABASE=admin \
  -e SPRING_DATA_MONGODB_DATABASE=skinserver \
  -e SPRING_DATA_MONGODB_HOST=127.0.0.1 \
  -e SPRING_DATA_MONGODB_PORT=27017 \
  -e SPRING_DATA_MONGODB_PASSWORD=YourPassword \
  -e SPRING_DATA_MONGODB_USERNAME=YourUsername \
  -e SKINSERVER_MAX-SIZE=512 \
  -e SKINSERVER_MIN-SIZE=16 \
  -e SKINSERVER_CONNECTION-ADDRESSES_0=127.0.0.1 \
  -p 8080:8080 \
   ghcr.io/themeinerlp/skinserver/skinserver:latest

Modify your database, host, username and password for the mongodb server. Optional: Modify SKINSERVER_MIN/MAX-SIZE and extend your IP Address Range

Installation with Docker-Compose

Copy the content below and paste it into a docker-compose.yaml file

version: '3.1'
services:
  mongo:
    image: mongo
    restart: always
    environment:
      MONGO_INITDB_ROOT_USERNAME: YourUsername
      MONGO_INITDB_ROOT_PASSWORD: YourPassword
      MONGO_INITDB_DATABASE: SkinServer
  skin-server:
    image: ghcr.io/themeinerlp/skinserver/skinserver
    restart: always
    ports:
      - 8080:8080
    environment:
      SPRING_DATA_MONGODB_AUTHENTICATION-DATABASE: admin
      SPRING_DATA_MONGODB_DATABASE: SkinServer
      SPRING_DATA_MONGODB_HOST: mongo
      SPRING_DATA_MONGODB_PORT: 27017
      SPRING_DATA_MONGODB_USERNAME: YourUsername
      SPRING_DATA_MONGODB_PASSWORD: YourPassword
      SKINSERVER_MAX-SIZE: 512
      SKINSERVER_MIN-SIZE: 16
      SKINSERVER_CONNECTION-ADDRESSES_0: 127.0.0.1

Then run following commands:

docker-compose up -d 

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.