Add footer & update README

This commit is contained in:
Nexus 2024-09-02 16:28:11 +01:00
parent 486cc0f569
commit 00c4be222d
2 changed files with 33 additions and 0 deletions

View file

@ -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 <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>.
## 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>

View file

@ -31,5 +31,9 @@
</main>
<noscript><p>(You need to enable JavaScript to load this)</p></noscript>
<script src="./script.js"></script>
<footer>
<p>This site was made by <a href="https://nexy7574.co.uk/" target="_blank">@nex</a></p>
<p>Source is available at <a href="https://git.i-am.nexus/nex/howmuchdoesthesims4cost.lol" target="_blank">git.i-am.nexus</a></p>
</footer>
</body>
</html>