Skip to content

shukitchan/ProjectWatchTower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Project WatchTower

Self Hosting useful applications for your home

  • Standard Notes: Note Taking application
  • Bitwarden: Password Management application

Pre-req

A working Mac machine with the following installed

  • Tailscale
  • Docker Desktop
  • Amphetamine App

Generating SSL certificate for your machine through Tailscale

  • Generate SSL cert for the domain name. Domain name is the full domain that can be retrieved from tailscale web UI
/Applications/Tailscale.app/Contents/MacOS/Tailscale cert <domain name>

Amphetamine App

  • Create Indefinitely New Session
  • Yes - "Allow display sleep"
  • No - "Allow system sleep when display is closed"

Setting containers for the applications

  • Apache Traffic Server (ATS) for exposing the applications under one domain
  • Standard Notes
  • Bitwarden

ATS

  • Use ats-alpine container - https://github.com/shukitchan/ats-alpine
  • expose container port 8443 to port 443
  • setup /work directory to point to ~/Library/Containers/io.tailsacle.ipn/macos/Data
  • records.config - export port 8443 as SSL server port
  • allow DELETE in ip_allow.yaml
  • remap.config
map https://<domain name>/headers http://httpbin.org/headers
map https://<domain name>/sn/ http://host.docker.internal:3000/
map https://<domain name>/bw/ http://host.docker.internal:30080/
map wss://<domain name>/bw/ ws://host.docker.internal:30080/
  • ssl_multicert.config
dest_ip=* ssl_cert_name=/work/<domain name>.crt ssl_key_name=/work/<domain name>.key

Standard Notes

Bitwarden

About

Self Hosting useful applications at home

Resources

Stars

Watchers

Forks