Handles submitting new and updating existing beatmaps to the osu! website.
This configuration permits full-stack integration testing with other local osu! services.
To run the project in this configuration, you must have a configured osu-web
instance.
Additionally, to test beatmap downloads, you may want to set up a local beatmap mirror; see osu-beatmap-mirror-docker-runtime
for more information.
- Set up a client key that will be used to identify users. It should be the same client key that the osu!(lazer) client uses to communicate with
osu-web
. - In
launchSettings.json
, in thefullstack
configuration, set the following environment variables:- Set
JWT_VALID_AUDIENCE
to the client ID assigned to the key created in step (1). - Set
LOCAL_BEATMAP_STORAGE_PATH
to a directory where submitted beatmaps should be placed.
- Set
- Copy the
osu-web
OAuth public key to theosu.Server.BeatmapSubmission
project root:$ cp osu-web/storage/oauth-public.key osu-server-beatmap-submission/osu.Server.BeatmapSubmission/oauth-public.key
- Start the project in the
fullstack
configuration. - The application will start at http://localhost:5089.
- When interacting with endpoints which require authorisation, every request must include an
Authorization: Bearer <TOKEN>
header. That token must be a token issued byosu-web
for the client key set up in step (1).
- When interacting with endpoints which require authorisation, every request must include an
For advanced testing purposes.
Envvar name | Description | Mandatory? | Default value |
---|---|---|---|
DB_HOST |
Hostname under which the osu-web MySQL instance can be found. |
❌ No | localhost |
DB_PORT |
Port under which the osu-web MySQL instance can be found. |
❌ No | 3306 |
DB_USER |
Username to use when logging into the osu-web MySQL instance. |
❌ No | root |
DB_PASS |
Password to use when logging into the osu-web MySQL instance. |
❌ No | "" |
DB_NAME |
Name of database to use on the indicated MySQL instance. | ❌ No | osu |
JWT_VALID_AUDIENCE |
The value of the aud claim to use when validating incoming JWTs. Should be set to the client ID assigned to osu! in the osu-web target deploy. |
✔️ Yes | None |
LOCAL_BEATMAP_STORAGE_PATH |
The path of a directory where the submitted beatmaps should reside. | None |