Lada

From Personal wiki
Revision as of 11:17, 8 April 2022 by A a (talk | contribs) (add map functionality description)

LXC container

Webserver contents

Scripts in php display youtube, videos (TV series), movies, dlw and more. Video files are usually directly served but the php scripts always link to them as vlc://[lada https domain]/path/to/movie.mkv to be handled on the client-side browser in a specific way, for example opening vlc and streaming the https file over the network directly 'on-screen'.

Uploadable storage

/ram.php shows download information and provides uploading form, /ramulpoad.php handes form and writes files to /var/www/html/ram/{filename}. Under /var/www/html/ram/ there is a tmpfs RAM filesystem mounted to allow volatile operations. It is mounted at boot by the systemd unit uploader in /etc/systemd/system/uploader.service.

Map

Makes cartography user-available in an interactive worldmap. /leaflet.html handles display of the maps from raster tiles and manages all the layers. It uses the leaflet javascript library, which is statically available in /leaflet/. Rendered map layers are specified by a tile URL in the format /osm/{layername}/{z}/{x}/{y}.png and any tile request will then be redirected to osm. Static raster tiles are directly mounted in the webserver, this is the case for one layer, /satellite/{z}/{x}/{y}.jpg. /leaflet.html also needs /leaflet.tilelayer.fallback.js[1] for fallback-enabled layers, this is currently used for the /satellite/ layer as it does not have all tiles available. Instead of displaying the error tile whenever a specific tile is missing (/satellite/ocean.jpg for /satellite/), it reuses upper-zoom tiles and pixellates them.

Arch and artix package mirror

Makes software zfs dataset available, all static files allow for package mirror operations. Use

Server = https://lada.tizarne.com/artix/$repo/os/$arch

for artix and

Server = https://lada.tizarne.com/arch/$repo/os/$arch

for arch in /etc/pacman.d/mirrorlist. To make the two directories available in the webserver root, symlinks are used :

arch -> data/software/arch                      
artix -> data/software/artix

External redirects

Main website entry point and redirects some subdirectories to other webservers

  • /osm to [osm]:80/
  • /kiwix to localhost:8000/
  • /dewa to [dewa]:8051/