From 00c4be222d6e9ebf38eaec383aaed8e4cf5aae4e Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 2 Sep 2024 16:28:11 +0100 Subject: [PATCH] Add footer & update README --- README.md | 29 +++++++++++++++++++++++++++++ static/index.html | 4 ++++ 2 files changed, 33 insertions(+) diff --git a/README.md b/README.md index 4ba18ec..c032464 100644 --- a/README.md +++ b/README.md @@ -1 +1,30 @@ # How much does the sims 4 cost? (lol) + +Get the price of the sims 4, including all DLCs, live! + +**NOTICE**: The hosted instance of this server, previously at , was moved to as the `.lol` renewal price was... a lot. So the domain expired. + +## Getting a different steam game's price + +If you include the steam game ID in the fragment (`site.example/#game_id`), you can fetch the price of any game and all of its DLCs. For example: . + +## Running your own + +Running your own instance is rather easy. The entire site is static, apart from one API endpoint that is needed as a transformer proxy. + +All you need to do is run `server.py`, and the app will be available at (it actually listens to `0.0.0.0` by default). Then, you can serve this with your favourite reverse proxy. + +As the included static files server is rather basic, you may have better performance if you serve the `static/` directory directly from your reverse proxy. + +
+My Caddyfile for the website + +``` +howmuchdoesthesims4cost.nexy7574.co.uk { + root * /var/www/howmuchdoesthesims4cost.lol/static + reverse_proxy /api/* localhost:1037 + file_server +} +``` +
+ diff --git a/static/index.html b/static/index.html index fa07dc7..f165957 100755 --- a/static/index.html +++ b/static/index.html @@ -31,5 +31,9 @@ +