Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problems #5

Open
Kaery40 opened this issue Nov 19, 2021 · 5 comments
Open

Installation problems #5

Kaery40 opened this issue Nov 19, 2021 · 5 comments

Comments

@Kaery40
Copy link

Kaery40 commented Nov 19, 2021

La méthode que vous avez écrite n'est pas exécutée sur Windos, je télécharge très lentement en Chine, donc je veux construire un téléchargement Web pour mes joueurs télécharger le paquet de ressources, mais ce tutoriel n'est pas très clair, pouvez - vous fournir des méthodes spécifiques pour fonctionner sur Windos? I need to install it on the server

@Kaery40
Copy link
Author

Kaery40 commented Nov 19, 2021

This error is found after installing the Linux version. The website can be accessed normally and the resource package cannot be uploaded.
@A~(EJ701)OWW`M~PPYS}S6

@ilworkcn
Copy link

i have this issue too.

@ilworkcn
Copy link

i fixed it ,polymath's webserver need https not http , maybe u should use nginx make http protocol to https

@Kaery40
Copy link
Author

Kaery40 commented Nov 22, 2021

我修复了它,polymath 的网络服务器需要 https 而不是 http,也许你应该使用 nginx 将 http 协议转换为 https

可有联系方式?

@oOHiyoriOo
Copy link
Contributor

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

  • 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants