# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 6
# self = https://watcher.sour.is/conv/stxbcda
@bender Sure! ๐Ÿ‘


{
    ...
   # Layer 4 Reverse Proxy
   layer4 {
      # Gopher
      0.0.0.0:70 {
         route {
            proxy <internal_ip>:70
         }
      }

      # IRC (TLS)
      0.0.0.0:6697 {
         route {
            proxy <internal_ip>:6697
         }
      }
   }
}
@prologic why donโ€™t you terminate TLS here? It seems as easy as adding tls under route.
@bender I _think_ I could, but I haven't bothered to do so yet... I'll try that out later...
@prologic I forgot to ask you about this. Did you ended up using TLS with Caddy, or you used something else?
@bender It's still a straight-through to the Eris backend that itself uses a Let's Encrypt cert now. Haven't tried to also terminate TLS at the Edge yet.
Honestly for these types of services, there probably isn't much point, as the layer4 module in Caddy doesn't do inspection/filtering anyway I think? ๐Ÿค”