bw/home.paperless-sophie add sophie's paperless host
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Sophie Schiller 2021-05-24 19:04:59 +02:00
parent 6bfcd87976
commit 1461cf2827
3 changed files with 83 additions and 0 deletions

View file

@ -66,6 +66,9 @@ actions = {
'needs': {
# actually /opt/paperless, but we don't create that
'directory:/opt/paperless/src',
'pkg_apt:python3',
'pkg_apt:python3-pip',
'pkg_apt:python3-virtualenv',
},
},
'paperless_install_deps': {
@ -112,6 +115,7 @@ actions = {
'needs': {
'directory:/opt/paperless/static',
'file:/opt/paperless/src/paperless.conf',
'action:paperless_create_virtualenv',
},
},
}

View file

@ -0,0 +1,3 @@
location /static/ {
alias /opt/paperless/static/;
}

View file

@ -0,0 +1,76 @@
nodes['home.paperless-sophie'] = {
'hostname': '172.19.138.30',
'bundles': {
'nfs-client',
'nodejs',
'redis',
'postgresql',
'paperless-ng',
},
'groups': {
'debian-buster',
'webserver',
},
'metadata': {
'backups': {
'exclude_from_backups': True,
},
'icinga_options': {
'exclude_from_monitoring': True,
},
'interfaces': {
'enp1s0': {
'ips': {
'172.19.138.30/24',
},
'gateway4': '172.19.138.1',
},
},
'nfs-client': {
'mounts': {
'nas_paperless': {
'mountpoint': '/mnt/paperless',
'serverpath': '172.19.138.98:/mnt/paperless',
'mount_options': {
'retry=0',
'rw',
},
},
'nas_scansnap': {
'mountpoint': '/mnt/scansnap',
'serverpath': '172.19.138.20:/srv/scansnap',
'mount_options': {
'retry=0',
'rw',
},
},
},
},
'nginx': {
'vhosts': {
'paperless': {
'domain': 'paperless-sophie.home.kunbox.net',
'ssl': '_.home.kunbox.net',
'proxy': {
'/': {
'target': 'http://127.0.0.1:22070',
'websockets': True,
'proxy_set_header': {
'X-Forwarded-Host': '$server_name',
},
},
},
'extras': True,
},
},
},
'paperless': {
'version': 'ng-1.4.4',
'timezone': 'Europe/Berlin',
},
'vm': {
'cpu': 2,
'ram': 2,
},
},
}