Skip to content
/ Asahi Public

avatar, bancho & /web/ server hybrid for osu!

Notifications You must be signed in to change notification settings

Skylocc/Asahi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asahi

avatar, bancho & /web/ server hybrid for osu! 😎

Note: This has only been tested on Ubuntu 18.04 LTS and other operating systems may have unpredicted behaviour

Note 2: This is a very experimental project mainly for my own learning and I don't suggest in any world using this on your own server in its current state for the forseeable future.

Setup

First install any requirements:

sudo add-apt-repository ppa:deadsnakes/ppa # for python 3.9
sudo apt update
sudo apt install python3.9 python3.9-dev python3.9-distutils nginx build-essential certbot mysql-server
python3.9 -m pip install -r ext/requirements.txt
wget https://bootstrap.pypa.io/get-pip.py
python3.9 get-pip.py && rm get-pip.py

Now, edit your nginx config (found in ext/nginx.conf), here we will generate the config for your nginx config and reload:

sudo certbot certonly --manual --preferred-challenges=dns --email [email protected] --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.your.domain -d your.domain # change your.domain & email to your own
sudo ln ext/nginx.conf /etc/nginx/sites-enabled/asahi.conf # make a link between nginx folder and asahi's folder so you can easy edit the config as needed
sudo nginx -s reload # reload nginx config

Now, copy the config file and edit the config:

cp ext/config.sample.py config.py

Finally, startup Asahi using hypercorn:

hypercorn main.py -b 127.0.0.1:9384 --reload --log-level error

About

avatar, bancho & /web/ server hybrid for osu!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages