Code Monkey home page Code Monkey logo

polymath's Introduction

Polymath

Polymath is a web server designed to host resource packs of the Oraxen plugin.


How to use Polymath

  • Clone the project git clone [email protected]:oraxen/Polymath or git clone https://github.com/oraxen/Polymath this fork: git clone [email protected]:oOHiyoriOo/polymath.git or git clone https://github.com/oOHiyoriOo/polymath.git

  • Cd in the directory cd ./Polymath

With nix package management

  • Install nix Follow this tutorial (you only need nix, not nixos): https://nixos.org/download.html On linux this is just this command: sh <(curl -L https://nixos.org/nix/install) --daemon On macos: sh <(curl -L https://nixos.org/nix/install) You can check the website to get it working on windows or docker.

  • Install the required libs If you installed nix, just type: nix-shell

Without nix package management (and Windows)

If you didn't install nix, you need to install Python 3.8 with those packages:

cython
aiohttp
toml
  • Build polymath
./build.sh
  • Run a first time sh ./run

  • Configure the file polymath/config/settings.toml

  • Run a second time sh ./run

  • Polymath should now be running


How to use on Pterodactyl or Windows

  • Clone the project git clone [email protected]:oraxen/Polymath or git clone https://github.com/oraxen/Polymath

  • Install Python (tested on 3.10!)

  • install following requirements (use pip or requirements.txt): pip install -r requirements.txt

  • run: python run

Installing Requirements:
aiohttp>=3.7.4
toml>=0.10.2
colorama>=0.4.5

you must setup SSL for this to work!

if using nginx:

  • setup a new vhost in /etc/nginx/sites-available/
  • setup ssl (u can use certbot)
  • change the location of the VHOST to something like:
location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header X-Real-IP $remote_addr;
    client_max_body_size 10M;
}

i recommend using a subdomain like texture.example.xyz

  • make sure port 443 is forwarded!

polymath's People

Contributors

eupedroosouza avatar oohiyorioo avatar th0rgal avatar uni0305 avatar xxnyulucyxx 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.