MapComplete/Docs/ServerConfig/hetzner/hetzner.txt

54 lines
1.2 KiB
Text
Raw Normal View History

2024-02-18 15:59:28 +01:00
# Hetzner
This server hosts the studio files and is used for expermintal builds.
For used ports, see the Caddyfile
2024-04-30 20:39:18 +02:00
To update caddy
2024-04-30 20:39:18 +02:00
```
cp Caddyfile /etc/caddy/
# If caddy was running via a console instead of as a service, do `caddy stop` now
systemctl reload caddy
```
2024-04-30 20:39:18 +02:00
Debug logs with: `journalctl -u caddy --no-pager | less +G`
2024-04-30 20:39:18 +02:00
2024-06-25 17:24:09 +02:00
In case of weird errors: wipe /var/lib/caddy/.local/share/caddy
## Services
### studio + theme sync
The studio server, handling those requests.
`npm run server:studio`
Additionally, this runs syncthing to make a backup of all theme files.
### LOD-server
A server scraping other websites.
`npm run server:ldjson`
### Error report server
A simple server logging everything it receives
`npm run server:errorreport`
### geo-ip
Provides geolocation based on
```
2025-07-05 23:45:10 +02:00
git clone https://source.mapcomplete.org/MapComplete/geoip-server.git
cd geoip-server
mkdir data
2025-07-05 23:45:10 +02:00
# Drop the databases from https://lite.ip2location.com/ in the data dir; #IP-COUNTRY-with latitude/longitude; from https://lite.ip2location.com/database/db5-ip-country-region-city-latitude-longitude
nohup npm run start >> data/log.txt &
```