nodes/home.paperless: introduce
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
aaf937a89f
commit
22c98a4206
12 changed files with 370 additions and 5 deletions
|
@ -123,6 +123,9 @@ nodes['home.nas'] = {
|
|||
'/storage/nas': {
|
||||
'172.19.138.0/24(ro,all_squash,anonuid=65534,anongid=65534,no_subtree_check)',
|
||||
},
|
||||
'/srv/paperless': {
|
||||
'172.19.138.29/32(rw,all_squash,anonuid=65534,anongid=65534,no_subtree_check)',
|
||||
},
|
||||
'/srv/scansnap': {
|
||||
'172.19.138.0/24(rw,all_squash,anonuid=65534,anongid=65534,no_subtree_check)',
|
||||
},
|
||||
|
@ -208,6 +211,9 @@ nodes['home.nas'] = {
|
|||
'storage/nas': {
|
||||
'mountpoint': '/storage/nas',
|
||||
},
|
||||
'storage/paperless': {
|
||||
'mountpoint': '/srv/paperless',
|
||||
},
|
||||
'storage/scan': {
|
||||
'mountpoint': '/srv/scansnap',
|
||||
},
|
||||
|
@ -226,6 +232,11 @@ nodes['home.nas'] = {
|
|||
'weekly': 6,
|
||||
'monthly': 12,
|
||||
},
|
||||
'storage/paperless': {
|
||||
'daily': 14,
|
||||
'weekly': 6,
|
||||
'monthly': 24,
|
||||
},
|
||||
'storage/scan': {
|
||||
'hourly': 6,
|
||||
'daily': 0,
|
||||
|
|
56
nodes/home/paperless.py
Normal file
56
nodes/home/paperless.py
Normal file
|
@ -0,0 +1,56 @@
|
|||
nodes['home.paperless'] = {
|
||||
'hostname': '172.19.138.29',
|
||||
'bundles': {
|
||||
'nfs-client',
|
||||
'nodejs',
|
||||
'redis',
|
||||
'postgresql',
|
||||
'paperless-ng',
|
||||
},
|
||||
'groups': {
|
||||
'debian-buster',
|
||||
'webserver',
|
||||
},
|
||||
'metadata': {
|
||||
'interfaces': {
|
||||
'enp1s0.42': {
|
||||
'ips': {
|
||||
'172.19.138.29/24',
|
||||
},
|
||||
'gateway4': '172.19.138.1',
|
||||
},
|
||||
},
|
||||
'nfs-client': {
|
||||
'mounts': {
|
||||
'nas_paperless': {
|
||||
'mountpoint': '/mnt/paperless',
|
||||
'serverpath': '172.19.138.20:/srv/paperless',
|
||||
'mount_options': {
|
||||
'retry=0',
|
||||
'rw',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'paperless': {
|
||||
'domain': 'paperless.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',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'paperless': {
|
||||
'version': 'ng-1.4.4',
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue