proxy

command module
v0.0.0-...-4fe8555 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 3 Imported by: 0

README

proxy

go-version report-card last-commit

Custom osu.ppy.sh proxy that allows you access certain routes that would require an account (such as osu!direct).

Requirements

  • Go 1.18 is required.
  • make and git are also required, but on most systems these are installed by default.
  • upx is optional, but recommended as it will compress the proxy.

Install

Clone the source:

$ git clone https://github.com/salad-server/proxy.git
$ cd proxy

Build and configure:

$ make build
$ make build-prod # OPTIONAL: upx alternative
$ cp ext/config.example.json config.json
$ nano config.json

Setup nginx:

$ sudo cp ext/nginx.conf /etc/nginx/conf.d/proxy.conf
$ sudo nano /etc/nginx/conf.d/proxy.conf

Finally, run the proxy:

$ ./proxy

You can use any process manager or something like tmux if you want to keep the proxy running in the background.

osu!direct

If you want to use this proxy for osu!direct, you'll need to make a few changes to your nginx configs. This can vary between servers, but you need to redirect /d/ and /web/osu-search.php to the proxy. Here's how mine looks:

server {
	listen 80;
	listen 443 ssl;
	server_name ~^(?:c[e4]?|osu|a|api)\.servername\.com$;

	... # location/ssl stuff

	# proxy inject
	location /d/ {
		rewrite ^(/d)(.*)$ https://proxy.servername.com/d/$2? permanent;
	}

	location /web/osu-search.php {
		rewrite (.*)$ https://proxy.servername.com/web/osu-search.php redirect;
	}
}

Assuming you have the proxy running on proxy.servername.com. If you had any issues setting this up you're welcome to open an issue. I'll get to it as soon as I can.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL