Lada: Difference between revisions

From Personal wiki
(add package repository)
(add map functionality description)
Line 3: Line 3:
== Webserver contents ==
== 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 <code>vlc://[lada https domain]/path/to/movie.mkv</code> to be handled on the client-side browser in a specific way, for example opening <code>vlc</code> and streaming the https file over the network directly 'on-screen'.
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 <code>vlc://[lada https domain]/path/to/movie.mkv</code> to be handled on the client-side browser in a specific way, for example opening <code>vlc</code> and streaming the https file over the network directly 'on-screen'.
=== Uploadable storage ===
<code>/ram.php</code> shows download information and provides uploading form, <code>/ramulpoad.php</code> handes form and writes files to <code>/var/www/html/ram/{filename}</code>. Under <code>/var/www/html/ram/</code> there is a <code>tmpfs</code> RAM filesystem mounted to allow volatile operations. It is mounted at boot by the systemd unit <code>uploader</code> in <code>/etc/systemd/system/uploader.service</code>.
=== Map ===
Makes cartography user-available in an interactive worldmap. <code>/leaflet.html</code> handles display of the maps from raster tiles and manages all the layers. It uses the <code>leaflet</code> javascript library, which is statically available in <code>/leaflet/</code>. Rendered map layers are specified by a tile URL in the format <code>/osm/{layername}/{z}/{x}/{y}.png</code> 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, <code>/satellite/{z}/{x}/{y}.jpg</code>. <code>/leaflet.html</code> also needs <code>/leaflet.tilelayer.fallback.js</code>[https://github.com/ghybs/Leaflet.TileLayer.Fallback] for fallback-enabled layers, this is currently used for the <code>/satellite/</code> layer as it does not have all tiles available. Instead of displaying the error tile whenever a specific tile is missing (<code>/satellite/ocean.jpg</code> for <code>/satellite/</code>), it reuses upper-zoom tiles and pixellates them.


=== Arch and artix package mirror ===
=== Arch and artix package mirror ===

Revision as of 11:17, 8 April 2022

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/