forked from MapComplete/MapComplete
Better documentation of server configuration, add error reporting server
This commit is contained in:
parent
cd0d275965
commit
13ea16317f
5 changed files with 127 additions and 15 deletions
|
@ -17,7 +17,7 @@ countrycoder.mapcomplete.org {
|
|||
|
||||
report.mapcomplete.org {
|
||||
reverse_proxy {
|
||||
to http://127.0.0.1:2600
|
||||
to http://127.0.0.1:2348
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,11 +2,49 @@
|
|||
|
||||
This server hosts the studio files and is used for expermintal builds.
|
||||
|
||||
For used hosts, see the Caddyfile
|
||||
For used ports, see the Caddyfile
|
||||
|
||||
To update caddy
|
||||
|
||||
```
|
||||
cp Caddyfile /etc/caddy/
|
||||
# If caddy was running via a console instead of as a service, do `caddy stop` now
|
||||
systemctl reload caddy
|
||||
```
|
||||
|
||||
Debug logs with: `journalctl -u caddy --no-pager | less +G`
|
||||
|
||||
Services:
|
||||
|
||||
|
||||
## Cache forwarding
|
||||
### studio + theme sync
|
||||
|
||||
As the ISP of Nerdlab is a bit picky, we use SSH-port-forwarding on the cache server:
|
||||
The studio server, handling those requests.
|
||||
|
||||
`ssh -R 5445:127.0.0.1:5445 hetzner`
|
||||
`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
|
||||
|
||||
```
|
||||
git clone https://github.com/pietervdvn/geoip-server
|
||||
cd geoip-server
|
||||
mkdir data
|
||||
# Drop the databases from https://lite.ip2location.com/ in the data dir
|
||||
npm run start
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue