nebula/README.md

62 lines
3.1 KiB
Markdown
Raw Normal View History

2017-11-04 13:53:43 +00:00
# nebula
2017-12-25 13:07:25 +00:00
>Where stars are born.
2017-11-04 13:53:43 +00:00
2017-12-25 13:07:25 +00:00
Manages the local infrastructure of my home server. I'm also doing blog posts around the same:
1. [Part 1, Hardware](https://captnemo.in/blog/2017/09/17/home-server-build/)
2. [Part 2, Terraform/Docker](https://captnemo.in/blog/2017/11/09/home-server-update/)
2017-12-26 17:52:24 +00:00
3. [Part 3, Learnings](https://4000.ports.captnemo.in/blog/2017/12/18/home-server-learnings/)
2017-11-04 13:53:43 +00:00
# modules
1. docker: to actually run the services
2. cloudflare: to manage the DNS
2017-11-18 11:40:02 +00:00
3. mysql: unused, but setup
2017-11-04 13:53:43 +00:00
2017-12-03 17:59:44 +00:00
Self-learning project for terraform/docker
2017-11-04 14:30:42 +00:00
# Planned
1. Setup DigitalOcean
2. Add DO infrastructure via ansible
2017-12-03 16:51:27 +00:00
3. ~Add traefik for proper proxying~
2017-11-29 20:14:05 +00:00
# Security Headers note
The following security headers are applied using traefik on all traefik frontend docker backends:
- HSTS: 2592000 seconds (1 week)
- Redirect HTTP->HTTPS
- contentTypeNosniff: true
- browserXSSFilter: true
2017-12-03 16:51:27 +00:00
- XFO: Allow-From muximux (TODO)
- referrerPolicy: no-referrer (TODO)
2017-11-29 20:14:05 +00:00
- X-Powered-By: Allomancy
- X-Server: BlackBox
2017-12-03 16:51:27 +00:00
- X-Clacks-Overhead "GNU Terry Pratchett" (TODO)
2017-11-30 20:49:35 +00:00
2017-12-25 13:11:02 +00:00
~~Currently waiting on traefik 1.5.0-rc2 to fix security specific headers issue (marked as TODO above).~~ (Now resolved with new traefik release)
2017-11-30 20:49:35 +00:00
2017-12-03 16:51:27 +00:00
## Upstream
Issues I've faced/reported as a result of this project:
2017-12-25 13:11:02 +00:00
1. Airsonic HTTPS proxying is broken. Reported: https://github.com/airsonic/airsonic/issues/641. Turned out to be a known issue: https://github.com/airsonic/airsonic/issues/594.
2017-12-03 16:51:27 +00:00
2. Traefik docker backend security headers were broken with dashes. Reported at https://github.com/containous/traefik/issues/2493, and fixed by https://github.com/containous/traefik/pull/2496
3. Headphones dies repeatedly with no error logs. Yet-to-report.
2017-12-25 13:11:02 +00:00
4. Terraform doesn't parse mariadb version numbers. Report: https://github.com/terraform-providers/terraform-provider-mysql/issues/6. Got this fixed myself by filing a PR: https://github.com/hashicorp/go-version/pull/34. Another PR pending in the [provider](https://github.com/terraform-providers/terraform-provider-mysql/pull/27) to bump the go-version dependency.
5. `elibsrv` didn't support ebook-convert, only mobigen. PR is at https://github.com/captn3m0/elibsrv/pull/1. I've to get this merged upstream for the next release.
6. `ubooquity` docker container doesn't let you set admin password: https://github.com/linuxserver/docker-ubooquity/issues/17. (Couldn't reproduce, closed)
7. Traefik customresponseheaders can't contain colons on the docker backend: https://github.com/containous/traefik/issues/2517. Fixed with https://github.com/containous/traefik/pull/2509
8. Traefik Security headers don't overwrite upstream headers: https://github.com/containous/traefik/issues/2618
2017-12-03 21:13:50 +00:00
# Plumbing
Their is a lot of additional infrastructure that is _not-yet_ part of this repo. This includes:
1. The Digital Ocean droplet running DNSCrypt and simpleproxy to proxy over a openvpn connection to this box.
2. openbox, kodi configuration to run on boot along with the Steam Controller for the HTPC setup
3. Docker main configuration with half-baked CA setup
4. btrfs-backed subvolumes and snapshotting for most things in /mnt/xwing/ (in-progress)