Skip to content

coko7/advent-of-time

Repository files navigation

🎄 Advent Of Time

This is the source code for the Advent Of Time webapp. The Advent Of Time is an advent type of game that takes place in December. Every day there will be a different picture and your goal is to try to guess the exact time it was taken at. You get points based on how well your perform.

The webapp relies on the rtfw-http-rs HTTP server.

A live version of this webapp can be found at aot.coko7.fr

Configuration

Use config.toml to configure things like the hostname, OAuth2, etc.

Run it

Simply cd to the root dir of the project and type:

cargo run

This should start the server on the specific hostname you configured. The default is: http://127.0.0.1:7878

Reverse-proxy configuration

Via Caddy:

aot.coko7.fr {
    reverse_proxy localhost:7878

    # Cache font in user browser to prevent re-downloading each time
    @font path /static/fonts/0xProto/0xProtoNerdFont-Regular.ttf

    header @font {
        Cache-Control "public, max-age=31536000, immutable"
    }
}