Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Betrifft: URL-Unterscheidung HAMNET/Internet #61

Closed
dh3wr opened this issue Apr 16, 2018 · 2 comments
Closed

Betrifft: URL-Unterscheidung HAMNET/Internet #61

dh3wr opened this issue Apr 16, 2018 · 2 comments

Comments

@dh3wr
Copy link
Contributor

dh3wr commented Apr 16, 2018

Hier nochmal die Übersicht für die URLs von Munin-Grafik und Kachel-Server

Unterscheidung:
HAMNET: Wenn API Server URL innerhalb von 44.0.0.0/8, oder Domain-Name enthält .ampr.org
Internet: Sonst

URL Karten-Server:
Internet: https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
HAMNET: http://karten.db0sda.ampr.org/osm/{z}/{x}/{y}.png (kein Loadbalancing so einfach möglich)

Munin-URL: Siehe #55

Abdeckungskarten (#54):
Internet (Beispiel für db0sea): https://hampager.de/assets/coverage/on0sea.png
HAMNET (Beispiel für db0sea): http://dapnet.db0sda.ampr.org/assets/coverage/on0sea.png

@dh3wr
Copy link
Contributor Author

dh3wr commented Apr 16, 2018

Vielleicht einen "cron-job" machen, der immer mal wieder (oder noch besser bei jeder Netzwerk-Änderung (WiFi-Verbunden/getrennt) testet, ob hampager.de/api oder dapnet.db0sda.ampr.org erreichbar ist und dann entsprechend ein internes Flag setzten, welche Server-URL benutzt werden soll.
Also "Ping"-URL kannst du ja die Statistik-API nehmen

@IHFSchwarz
Copy link
Collaborator

Die relevanten URLs (Karten, Abdeckungskarten) habe ich mal in eigene Issues ausgelagert.
Bzgl "cron-job" o.ä. habe ich ja schon in #58 geschrieben. Auch diese Issue wird in DAP4J einfließen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants