My Learning Journey
  • My Learning Journey
  • Timeline
    • 2024
      • August
        • August 08, 2024
        • August 09, 2024
        • August 10, 2024
        • August 11, 2024
        • August 12, 2024
        • August 19, 2024
      • November
        • November 26, 2024
      • December
        • December 13, 2024
        • December 21, 2024
Powered by GitBook
On this page
  • Things That I Discovered
  • 1. Caddy Load-Balancing
  • 2. Show Wi-Fi Networks in Ubuntu Server
  1. Timeline
  2. 2024
  3. December

December 21, 2024

PreviousDecember 13, 2024

Last updated 5 months ago

Things That I Discovered

1. Caddy Load-Balancing

  • Turned to Caddy's Load Balancing capabilities to make sure a service stays up even if the server A goes down, and for that we can just declare a Reverse Proxy such that the server B is used when the server A goes down.

  • Example:

    :80 {
        reverse_proxy {
            to 100.64.0.1:12345 100.64.0.2:12345
            health_uri /health
            health_interval 5s
            health_timeout 2s
            health_status 200
            health_passes 5
            fail_duration 30s
            lb_policy first
        }
    }
  • Reference(s):

2. Show Wi-Fi Networks in Ubuntu Server

  • In order to show available WiFi Networks in Ubuntu Server, we can use iwlistcommand.

  • Example:

    sudo iwlist <INTERFACE_NAME> scan | grep ESSID
  • Reference(s):

Caddy Server Documentation
Linux Training Academy
Greg Hilston Blog
LinuxBabe
Linux Uprising