howmuchdoesthesims4cost.lol/README.md

35 lines
1.7 KiB
Markdown
Raw Normal View History

2024-03-06 11:16:06 +00:00
# How much does the sims 4 cost? (lol)
2024-09-02 16:28:11 +01:00
Get the price of the sims 4, including all DLCs, live!
**NOTICE**: The hosted instance of this server, previously at <https://howmuchdoesthesims4cost.lol>, was moved to <https://howmuchdoesthesims4cost.nexy7574.co.uk> 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: <https://howmuchdoesthesims4cost.nexy7574.co.uk/#255710>.
2024-09-02 17:24:54 +01:00
**New!** (2024-09-02) You can now also include the game ID in the search parameters. For example: <https://howmuchdoesthesims4cost.nexy7574.co.uk/?app_id=255710>.
There is also now a form included at the bottom of the page, above the footer, that allows you to put an ID in.
You can *also* now just pass a steam store URL into the site. Technological advancements!
2024-09-02 16:28:11 +01:00
## 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 <http://localhost:1037> (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.
<details>
<summary>My Caddyfile for the website</summary>
```
howmuchdoesthesims4cost.nexy7574.co.uk {
root * /var/www/howmuchdoesthesims4cost.lol/static
reverse_proxy /api/* localhost:1037
file_server
}
```
</details>