EOL htz-cloud.sewfile

This commit is contained in:
Franzi 2024-03-06 20:06:42 +01:00
parent e386b44442
commit 0d362bdb22
Signed by: kunsi
GPG Key ID: 12E3D2136B818350
6 changed files with 0 additions and 242 deletions

View File

@ -1,13 +0,0 @@
[Unit]
Description=Seafile
After=network.target mysql.service
[Service]
Type=forking
ExecStart=/opt/seafile/seafile-server-latest/seafile.sh start
ExecStop=/opt/seafile/seafile-server-latest/seafile.sh stop
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target

View File

@ -1,13 +0,0 @@
[Unit]
Description=Seafile hub
After=network.target seafile.service
[Service]
Type=forking
ExecStart=/opt/seafile/seafile-server-latest/seahub.sh start
ExecStop=/opt/seafile/seafile-server-latest/seahub.sh stop
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target

View File

@ -1,73 +0,0 @@
users = {
'seafile': {
'home': '/opt/seafile',
},
}
directories = {
'/opt/seafile': {
'mode': '0755',
'owner': 'seafile',
'group': 'seafile',
},
}
files = {
'/etc/systemd/system/seafile.service': {
'needed_by': {
'svc_systemd:seafile',
},
'triggers': {
'action:systemd-reload',
},
},
'/etc/systemd/system/seahub.service': {
'needed_by': {
'svc_systemd:seafile',
},
'triggers': {
'action:systemd-reload',
},
},
}
svc_systemd = {
'seafile': {
'needs': {
'pkg_pip:',
},
},
'seahub': {
'needs': {
'svc_systemd:seafile',
'pkg_pip:',
},
},
}
for pkg in (
'django==3.2.19',
'future==0.18.3',
'mysqlclient==2.1.1',
'pymysql',
'pillow==9.3.0',
'pylibmc',
'captcha==0.4',
'markupsafe==2.0.1',
'jinja2',
'sqlalchemy==1.4.3',
'psd-tools',
'django-pylibmc',
'django_simple_captcha==0.5.17',
'djangosaml2==1.5.7',
'pysaml2==7.2.1',
'pycryptodome==3.16.0',
'cffi==1.15.1',
'lxml',
):
if '==' in pkg:
pkg, version = pkg.split('==', 1)
else:
version = None
pkg_pip[pkg.replace('_', '-')] = {'version': version}

View File

@ -1,28 +0,0 @@
defaults = {
'apt': {
'packages': {
'mariadb-server': {},
'python3': {},
'python3-setuptools': {},
'python3-pip': {},
'default-libmysqlclient-dev': {},
},
},
'backups': {
'paths': {
'/opt/seafile',
},
},
'icinga2_api': {
'seafile': {
'services': {
'SEAFILE PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seafile',
},
'SEAHUB PROCESS': {
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_systemd_unit seahub',
},
},
},
},
}

View File

@ -1,23 +0,0 @@
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_read_timeout 1200s;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
proxy_request_buffering off;
}
location /media {
alias /opt/seafile/seafile-server-latest/seahub/media;
}

View File

@ -1,92 +0,0 @@
# this node runs only seafile. Seafile and the mysql server are not
# managed by bundlewrap.
nodes['htz-cloud.sewfile'] = {
'bundles': {
'seafile',
'zfs',
},
'groups': {
'debian-bullseye',
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
'ips': {
'116.203.205.248',
'2a01:4f8:c0c:c71b::1/64',
},
'gateway4': '172.31.1.1',
'gateway6': 'fe80::1',
},
'ens10': {
'ips': {
'172.19.137.3/32',
},
'routes': {
# VPN
'172.19.128.0/20': {
'via': '172.19.137.1',
},
},
},
},
'backups': {
'paths': {
'/mnt/seafile-data',
'/var/tmp/mysqldumps',
},
},
'backup-client': {
'pre-hooks': {
'mysqldump': \
'test -d /var/tmp/mysqldumps || mkdir -p /var/tmp/mysqldumps\n'\
'rm /var/tmp/mysqldumps/*.sql\n'\
'mysqldump --databases ccnet_db > /var/tmp/mysqldumps/ccnet_db.sql\n'\
'mysqldump --databases seafile_db > /var/tmp/mysqldumps/seafile_db.sql\n'\
'mysqldump --databases seahub_db > /var/tmp/mysqldumps/seahub_db.sql\n',
},
},
'icinga_options': {
'pretty_name': 'sewfile.franzi.business',
'vars.notification.sms': False,
},
'nginx': {
'vhosts': {
'sewfile.franzi.business': {
'max_body_size': '0',
'extras': True,
'website_check_path': '/accounts/login/',
'website_check_string': 'Username',
},
},
},
'vm': {
'cpu': 1,
'ram': 2,
},
'zfs': {
'pools': {
'tank': {
'when_creating': {
'config': [{
'devices': {'/dev/sdb'},
}],
},
},
},
'datasets': {
'tank/mysql': {
'mountpoint': '/var/lib/mysql',
},
'tank/seafile-data': {
'mountpoint': '/mnt/seafile-data',
'needed_by': {
'bundle:seafile',
},
},
},
},
},
}