Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galarzaa90/tibiastatic
An aiohttp server that acts as proxy for resources in static.tibia.com
https://github.com/galarzaa90/tibiastatic
Last synced: about 1 month ago
JSON representation
An aiohttp server that acts as proxy for resources in static.tibia.com
- Host: GitHub
- URL: https://github.com/galarzaa90/tibiastatic
- Owner: Galarzaa90
- License: mit
- Created: 2021-05-03T13:55:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T23:13:31.000Z (5 months ago)
- Last Synced: 2024-10-14T05:43:08.534Z (2 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# TibiaStatic
An [aiohttp](https://docs.aiohttp.org/) server that acts as proxy for resources in `static.tibia.com`, serving them from
the server's disk, allowing images to be properly embedded in applications like Discord.Note that in order to use this, this must be run from a publicly accessible location (i.e. with a public IP or a domain)
## Installing
### Using python
First you must install the required dependencies:
```shell
python -m pip install -r requirements.txt
```Then you can run `main.py` to start it. It supports the following command line arguments:
| Argument | Default | Description |
| ---------------------- | ------------- | ----------------------------------------------------- |
| `-p`, `--port` | 8000 | The port where the HTTP server will be exposed to. |
| `-m`, `--metrics-port` | 8001 | The port where Prometheus metrics will be available. |
| `--help` | -- | Shows information about the available options. |For example:
```shell
python main.py -p 7500
```## Usage
When the server is running, any image in `static.tibia.com` can be fetched by replacing the URL with the server's
address.| Server's Address | Tibia.com Resource | Proxied URL |
| ---------------- | -------------------------------------------------------- | ----------------------------------------------------------------- |
| `localhost` | https://static.tibia.com/images/forum/logo_hotsticky.gif | `http://localhost/images/forum/logo_hotsticky.gif` |
| `example.com` | https://static.tibia.com/images/news/doubleloot_small.png | `https://example.com/images/news/doubleloot_small.png` |