mapcomplete/Docs/ServerConfig/cache/cache.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.1 KiB
Markdown
Raw Normal View History

2024-02-18 15:59:28 +01:00
# Cache.mapComplete.org server config
The "cache"-server is hosted at nerdlab.
It has a full OSM-copy on disk, and has a Postgis/Postgres database with a table for every layer for quick access. It should run the tileserver and the summaryserver
## Dyndns
https://dynamicdns.park-your-domain.com/update?host=cache&domain=mapcomplete.org&password=[ddns_password]
## Setup
2024-06-12 14:43:19 +02:00
See [SettingUpPSQL.md](../SettingUpPSQL.md)
2024-02-18 15:59:28 +01:00
## Services
2024-02-18 15:59:28 +01:00
### Summary tiles + MVT-tiles
### Mastodon bot
As of 2024-07-08, the mastodon bots [@mapcomplete@botsin.space](https://botsin.space/@mapcomplete) and [@ghostbikebot@masto.bike](https://masto.bike/@ghostbikebot) are running on this server.
They use [this repo](https://github.com/pietervdvn/MastodonBot). Note that this needs a residential internet connection as fetching the attribution from IMGUR fails on the hetzner host.
In the crontab:
```cronexp
0 0 * * * cd ~/git/MastodonBot && nvm use && npm run daily && npm run start -- config/config.json
0 0 1 * * cd ~/git/MastodonBot && nvm use && npm run daily && npm run start -- config/config_ghost-bikes.json
```