\documentclass[
  11pt,
  twoside,
  headsepline,
  svgnames
]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage[automark]{scrlayer-scrpage}

\usepackage[raiselinks=true,
bookmarks=true,
bookmarksopenlevel=1,
bookmarksopen=true,
bookmarksnumbered=true,
hyperindex=true,
plainpages=false,
pdfpagelabels=true,
pdfborder={0 0 0.5}
]{hyperref}
\usepackage{tikz}

\usepackage{book/layout-hen}
\usepackage{book/layout-tweaks}

\newcommand{\booktitle}{DIY personal web server}
\newcommand{\booksubtitle}{How to run your own webserver and keep control of your data}
\newcommand{\bookauthor}{Hendrik Langer}
\newcommand{\booksubject}{}
\newcommand{\bookkeywords}{Open Source, Free Software, Debian, Hosting, Cloud}

\hypersetup{
  pdfauthor={\bookauthor},
  pdftitle={\booktitle},
  pdfsubject={\booksubject},
  pdfkeywords={\bookkeywords},
  pdflang=en,
  colorlinks,
  linkcolor=black,
  anchorcolor=black,
  filecolor=black,
  urlcolor=black,
  citecolor=black,
  bookmarksnumbered=true,
  pdfpagelayout=TwoColumnRight
}

\begin{document}

\frontmatter
  \input{book/cover-page}
  \tableofcontents

\mainmatter
  \part{Introduction and Overview}
    % why
    % caveats
    % system overview
    % requirements
      % hardware
      % network
  \part{Basic system setup}
    % installation
      \include{systemsetup/repositories}
    % networking
    % dns
    % certificates
    % backup
      % etckeeper

    % user management
      % intro
      % ldap
      % sso
    % virtualization
  \part{Webserver}
  \part{Mail}
  \part{Services}
%\input{owncloud}
%\input{gitlab}
%\input{prosody}
%\input{blog}
%\input{openhab}
%\input{telephony}
%\input{vdr}
%\input{fileserver}
%\input{security/fail2ban}
%\input{security/unattended-upgrades}
%\input{monitoring}
%\input{business}

%\input{book/closingwords}
\input{book/back-cover}




\end{document}
